Skip to content

bacarybruno/ionic-news-app

Repository files navigation

Welcome to ionic-news-app 👋

A news app built with Ionic/Angular and using Wordpress REST API

Install

npm install

Configuration

Open the articles.ts file inside src/app/providers folder.

baseUrl: string = ""; // wp-api url

Enter the value of your wordpress website base url in the following format : <ROOT_URL>/wp-json/wp/v2/.

Then on the same file, replace the loadCategories method by returning the categories you want to display in the app.

return [{
   "id": 0,
   "name": "Accueil",
   "index": 0 
}]

Your can get your wordpress blog category list by browsing this url : <ROOT_URL>/wp-json/wp/v2/categories/.

Usage

Build

npm run ionic:build

Run

npm run ionic:serve

Author

👤 bacarybruno

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2017 bacarybruno.


This README was generated with ❤️ by readme-md-generator