Getting started
#
Setup local development- Install all package dependencies using npm:
npm i
- Start the application:
npm start
- The application should now be accessible at http://localhost:3000
By default, the application will refer backend requests to the Production WordPress API (klemich.snarkiedesign.com.au/wp-json/wp/v2/). You can configure your local development to direct requests to a local WordPress instance on port 8888 using npm run start:local
. If you require a different port, you can edit this script in package.json
.
You can run a local production build using npm build
. It can be helpful to run this before attempting a deploy to ensure there are no compilation errors.
#
Requirements- Node.js
#
Recommended IDE plugins- EditorConfig
- ESLint