1.0.13 • Published 6 years ago
@4alldigital/minimal-react-boilerplate v1.0.13
A minimal React app with Express server boilerplate
- React
- Express
- Babel
- Webpack 4
- Jest
Prerequisites
- Node
Installation
npm install
Optional Environment variables can be added via a local .env file located in the project root.
BROWSER=true // set for client webpack config.
PORT=9000 // Client dev server port.
API_PORT=9001 // API server PORT
PROXY_API_URL=http://api.io // API server proxy to backend service via `/api` routes.
Start "Client" development environment
npm run start
Start API server
npm run dev:server
Build production "Client" app
npm run build
Start API server
npm run start:server
NOTES:
- To test dev run
curl http://localhost:9001/healthcheck
from terminal.200!
should be the response.