ivn-cote / vilib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vilib

React SPA to manage your movie collection

The user should be able to CRUD movies.

Setup

Install dependencies:

$ npm install

Boot up the app:

$ npm start

To run the server in release mode, set the environment variable NODE_ENV=production

What's Done And What's Left

  • CRUD only, no actual storing for the data.
  • No pictures uploading.
  • Some tests still missing, on Redux action in particular.

Why Redux

  • 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.

Technologies

As an initial help starter generator-redux-stack was used. It includes:

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!

Test

Run tests:

$ npm test

About


Languages

Language:JavaScript 96.2%Language:CSS 2.3%Language:HTML 1.5%