React Client Generator (generator-react-client)
React client with Node/Express backend middleware
Installation
First, install Yeoman and generator-react-client using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-react-client
Then generate your new project:
yo react-client myproject
Project Documentation
Requirements
- Node
- npm
Stack
- Node
- Serverless (AWS Lambda + API Gateway + S3)
- Webpack
- ES6 (Babel)
- React
- React Router
- Redux / Redux Form
- PostCSS / SASS
- Material UI
- Jest / Enzyme / Chai
Initialization
npm i && npm run dev
Build to production|stage
NODE_ENV=production ENV=production|stage npm run build
Testing
./src/client/**/*.spec.js
)
Using jest with enzyme and chai (see examples on npm test
Deploy to AWS production|stage (with Serverless)
NODE_ENV=production ENV=production|stage npm run serverless:deploy