Skip to content

Repository files navigation

Ionic React with WordPress example

Just try the demo site

You can deploy the demo site to the following services.

amplifybutton

netlifybutton

Getting started

$ git clone git@github.com:getshifter/ionic-react-wordpress.git
$ cd ionic-react-wordpress $ npm install
$ npm start

Use own WordPress

General configuration file is src/config.ts. You can update properties for your WordPress site.

classConfig{getpostURLPrefix(){return'news'}getpageURLPrefix(){return''}getwordpressURL(){return'https://central.wordcamp.org/wp-json'}getwpClient(){returnnewwp({endpoint: this.wordpressURL})}}

Production build

$ npm run build

Desktop application

We can run it as a Desktop application

$ yarn run build && npx cap copy
$ npx cap open electron

Build for Desktop

$ yarn run build && npx cap copy
$ cd electron
$ npx electron-packager . sample --platform=darwin --arch=x64
$ open ./sample-darwin-x64

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages