The user should be able to CRUD movies.
Install dependencies:
$ npm install
Boot up the app:
$ npm start
To run the server in release mode, set the environment variable NODE_ENV=production
- CRUD only, no actual storing for the data.
- No pictures uploading.
- Some tests still missing, on Redux action in particular.
- Redux for CRUD is widely used and it was a sample initial problem Abramov had picked for presentation of Redux.
- In situation store is LocalStorage or similar Redux still makes sense for its "controller" bindings.
- Maybe an observer pattern based solution like MobX would be simplier.
As an initial help starter generator-redux-stack was used. It includes:
- react (v15) - View layer
- react-router (v4) - Router
- redux - State management
- redux-thunk - Async actions
- sass - CSS preprocessor
- react-css-modules - Scoped CSS modules
- babel - ES6/JSX compiler
- webpack (v2) - Module bundler
- jest - Test suite
I've used it for first time. And there were some drawbacks of this starter I've been struggling with, especially on Jest side. Package redux-crud was choosen as DRY helper for CRUD implementation. My pet project generator-not-bad-react-component was taken for component structure scaffolding. Maybe that's all a little bit overingineering, but in fact it seems lke a very suitable concept for production-ready code.
As a UI component library was taken material-ui. Really nice API and shiny design!
Run tests:
$ npm test