React app of the Job Shop Collection website.
git clone https://github.com/michaelyinopen/job-shop-collection-web
cd job-shop-collection-web
npm install
npm start
Run locally job-shop-collection-api to handle the API requests. Make sure the "proxy" in package.json matches the launch settings of API.
react-cosmos is used as the component library for development
npm run cosmos
- REACT_APP_API_URL
- REACT_APP_HOST
Used withhostConstants.js
for Home page's 'This application is built with' section. - CI
Set to true and warning will be treated as error.
Most CI servers set it automatically.
Do not need these environment variables when running locally.
npm install http-server --save-dev
npm run start-production
npm run build -- --stats
npx webpack-bundle-analyzer ./build/bundle-stats.json