Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 940 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 940 Bytes

Headless WordPress with React and NextJS

Setup / Configuration

  • Clone the repo locally.
  • Search and replace siteurl from wp.test to the url of your desired site.
  • Run npm install.
  • Run npm run build for production build.
  • Run npm run start to see the changes as of now at http://localhost:8080. ( You can change port by updating port value in server.js )
  • Use npm run dev while making changes / updates to the files.

Additional Info

  • pages - Files inside this directory will be treated as pages.
  • routes.js - You can define all the routes here.
  • server.js - Contains server setup information.

Demo

View App Demo

Credits

Sample demo is built using this.