Package | Description |
---|---|
create-react-app |
Create React apps with no build configuration. |
redux |
Predictable state container for JavaScript apps |
react-router |
Routing library for React |
redux-thunk |
An alternative side effect model for Redux apps |
normalizr |
Normalizes nested JSON according to a schema |
reselect |
Selector library for Redux |
babel |
Compiler for writing next generation JavaScript |
Plugins | Description |
---|---|
WP REST API Menus |
Extends WP API with WordPress menu routes. |
WP REST API - filter fields |
Enables you to filter the fields returned by the api. |
Better REST API Featured Images |
Adds a top-level field with featured image data including available sizes and URLs to the post object returned by the REST API. |
Advanced Custom Fields |
Customise WordPress with powerful, professional and intuitive fields |
ACF to REST API |
Exposes Advanced Custom Fields Endpoints in the WP REST API v2 |
- This application requires
mongodb
database. To install it, go to this link. - After, you need install all dependencies using this command:
npm install
or
yarn install
- Next, you should create config
.env
files:
REACT_APP_WP_URL='Place here your wordpress website link like `http://localhost:8888`'
- Next, you can run application:
npm start
npm run start:server
npm run server
Command | Description |
---|---|
npm install |
Install project dependencies and build files |
npm start |
Run server with webpack in development mode |
npm run server |
Run server in production mode |
npm run build |
Build client javascript file for production |
npm test |
Run tests in watch mode |
npm run test-all |
Run all test files |