Demo: http://react-redux-table.surge.sh
Features:
- React-Redux data flow
- Fetch JSON from an API and render into a table
- Filter and sort data in the table
- Routing with react-router
- Redux middlewares
- Separate reducers and actions
- ES6/ES7 with babeljs (es2015, stage-0, react)
- Stylus
- Webpack dev and production
- Eslint standard
- Unit tests with mocha + chai
$ npm install
$ npm run dev # builds and hot reloads on changes
$ npm run build # builds production assets (transpile, minify, etc)
$ npm start # Start express server and serves index.html
$ npm run lint # Runs eslint
$ npm test # Runs mocha
$ npm run test:dev # Run mocha in watch mode
Data from USDA nutrient API