1.0.0 • Published 8 years ago
minimal-react-boilerplate v1.0.0
A minimal React app with Express server boilerplate
- React
- Express
- Babel
- Webpack 4
- Jest
Prerequisites
- Node
Installation
npm installOptional 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 startStart API server
npm run dev:serverBuild production "Client" app
npm run buildStart API server
npm run start:serverNOTES:
- To test dev run
curl http://localhost:9001/healthcheckfrom terminal.200!should be the response.
1.0.0
8 years ago