Ready-to-go template for React + Redux application BY _haochuan(haochuan.liu@gmail.com)
npm install -g reactux
reactux [project name]
// this will create a folder [project name] contains the template in current directory
- CLI to generate start files
- Fully support ES6
- Reasonable file structure for React and Redux
- React Router support
- Built-in Redux dev tools and middlewares
- Full webpack setup with webpack dashboardfor dev and production environment, including compiling JSX, eslint, different loaders, CSS module, Hot Module Reload, copying dependencies, building and deploying
- Express server with customization and configuration including auth, logger, cor
- Components and Reducer tests Setup with ava, enzyme and sinon
- Ajax calls with isomorphic-fetch and normalizr
- eslint built-in with customized configuration
- App store sync with LocalStorage
- Nested React Router Setting
- Deploy with pm2
npm install
npm run dev
npm run dev-dashboard // run dev server with webpack-dashboard
- run test:
npm run test
- lint:
npm run lint
npm install --production
npm run build
npm run production