Simple next.js and react boilerplate. Create dyanmic react websites that are rendered server side for SEO benefits. Use your wordpress backend to fetch data and render with jsx.
- clone or fork this repo
- Navigate to the project directory from your terminal and run
npm install
- Create a .env file with the following variables:
WORDPRESS_URL=https://<your-domain-name>.com
WORDPRESS_API_URL=https://<your-domain-name>.com/wp-json/wp/v2/
- Change the name of the project in your
package.json
- Run
npm run dev
from your terminal - Visit
localhost:3000
to see your local enviornment