3.1.0 • Published 7 years ago
reactux-template v3.1.0
reactux
Ready-to-go template for React + Redux application BY _haochuan(haochuan.liu@gmail.com)
Installation
npm install -g reactux
Usage
reactux [project name]
// this will create a folder [project name] contains the template in current directory
About the Template
- 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
Development
npm install
npm run dev
npm run dev-dashboard // run dev server with webpack-dashboard
- run test:
npm run test
- lint:
npm run lint
Production
npm install --production
npm run build
npm run production
3.1.0
7 years ago