Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionicthemes/ionic-wordpress-integration
Ionic Wordpress starter app 😎. Learn how to communicate your ionic app with Wordpress REST API with this starter and detailed tutorial.
https://github.com/ionicthemes/ionic-wordpress-integration
angular ionic ionic-apps ionic-framework ionic-tutorial ionic5 wordpress wordpress-rest-api
Last synced: 3 days ago
JSON representation
Ionic Wordpress starter app 😎. Learn how to communicate your ionic app with Wordpress REST API with this starter and detailed tutorial.
- Host: GitHub
- URL: https://github.com/ionicthemes/ionic-wordpress-integration
- Owner: ionicthemes
- Created: 2017-10-06T15:45:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T06:31:51.000Z (over 1 year ago)
- Last Synced: 2024-05-13T20:55:19.088Z (8 months ago)
- Topics: angular, ionic, ionic-apps, ionic-framework, ionic-tutorial, ionic5, wordpress, wordpress-rest-api
- Language: TypeScript
- Homepage: https://ionicthemes.com/tutorials/about/ionic-wordpress-integration
- Size: 4.56 MB
- Stars: 265
- Watchers: 24
- Forks: 128
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Ionic Wordpress Starter App
Let's build an Ionic app for your Wordpress site using Wordpress REST API! This ionic tutorial will show you how to communicate with the WP API in order to get your Wordpress posts, categories, comments. We also added Wordpress Login using JWT .This ionic tutorial includes a working example you can reuse for your needs!
**This app is built using Ionic 5 and Angular 11.**
*The old version used Ionic 3, if you are still working with Ionic 3, check the Ionic-v3 folder.*
**Please support this project by simply putting a Github star ⭐.**
🤓 [Check the complete step by step tutorial](https://ionicthemes.com/tutorials/about/ionic-wordpress-integration).
🚀 [Try the demo](https://ionic-wordpress-tutorial.web.app/).
## Installation
Install dependencies
```sh
npm install
```## Wordpress Configuration
The REST API is included in the Wordpress Core from WordPress 4.7! Plugins are no longer required, just install the latest version of WordPress and you're ready to go.
In order to check that you are able to make requests to the REST API you only need to make a request to the following url: http://YOUR-WORDPRESS-SITE/wp-json/wp/v2/
Please note that you need to change 'YOUR-WORDPRESS-SITE' with your own value.## Run the app on the browser
```sh
ionic serve
```## Run the app on your phone
This project uses [Capacitor](https://capacitor.ionicframework.com/docs/) (spiritual successor to Cordova).[Read this post](https://ionicthemes.com/tutorials/about/native-cross-platform-web-apps-with-ionic-capacitor) to get an introduction about Capacitor and learn the main differences between Capacitor and Cordova.
Before starting make sure to read the [Capacitor Required Dependencies](https://capacitor.ionicframework.com/docs/getting-started/dependencies).
The Capacitor workflow involves a few consistent tasks:
- [Develop and build your Web App](https://capacitor.ionicframework.com/docs/basics/workflow/#1-develop-and-build-your-web-app)
- [Copy your Web Assets](https://capacitor.ionicframework.com/docs/basics/workflow/#2-copy-your-web-assets)
- [Open your Native IDE](https://capacitor.ionicframework.com/docs/basics/workflow/#3-open-your-native-ide)
- [Periodic Maintenance](https://capacitor.ionicframework.com/docs/basics/workflow/#4-periodic-maintenance)#### iOS Platform
Read how to [build this app for iOS](https://capacitor.ionicframework.com/docs/basics/building-your-app#ios).#### Android Platform
Read how to [build this app for Android](https://capacitor.ionicframework.com/docs/basics/building-your-app#android).