gjcarrow / wp-api-react

This boilerplate will help you use React JS with Wordpress REST API.

Home Page:https://medium.freecodecamp.com/how-to-build-react-apps-on-top-of-the-wordpress-rest-api-bcc632808025#.tkbzho7ms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordpress REST API + React JS

This boilerplate will help you use React JS with Wordpress REST API. Clone the project and install node packages:

npm i

To run the project on localhost:8080:

npm start

To build the project into /build folder:

npm run build

You need to have webpack and webpack-dev-server installed globally:

npm install -g webpack
npm install -g webpack-dev-server

Don't forget to update the Worpress installation url in DataActions.js. It's located in src/actions/DataActions.js line 7

class DataActions {
	constructor() {
		const appUrl = 'http://andreypokrovskiy.com/projects/wp-api'; // Wordpress installation url
	}

About

This boilerplate will help you use React JS with Wordpress REST API.

https://medium.freecodecamp.com/how-to-build-react-apps-on-top-of-the-wordpress-rest-api-bcc632808025#.tkbzho7ms


Languages

Language:JavaScript 98.9%Language:HTML 1.1%