Leveraging WordPress REST API to power mobile apps
Install the following:
-
Node.js: https://nodejs.org/en/download/
-
Ionic Framework: https://ionicframework.com/getting-started#cli
The following will be useful in order to package and publish apps but not required for the workshop.
-
Java: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-
Android Studio: https://developer.android.com/studio/install
Important:
- Working local WordPress installation with some posts, preferably with featured images/attachments. Install this plugin: https://github.com/WP-API/Basic-Auth and this one https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
- Finished sample plugin to extend REST API: https://gist.github.com/mahlamusa/9bd45e5084aabb993d58e3bdfd6755fb
- In your local WordPress installation, you should have a PHP file located in ‘wp-content/mu-plugins/rest-api.php’, will will add some code during the workshop to this file.
- Clone this repository to an workable folder on your computer: https://github.com/mahlamusa/wp-rest-api-powered-app
WordPress Rest API Documentation: https://developer.wordpress.org/rest-api/