Files
old-ribica/front-ui
2015-12-16 08:39:54 +01:00
..
2015-12-16 08:39:54 +01:00
2015-11-29 10:02:57 +01:00
2015-06-21 17:25:44 +02:00
2015-07-05 13:24:09 +02:00
2015-07-25 14:08:02 +02:00
2015-01-27 06:53:42 +01:00

Ribica front office

Front end of the shop (javascript)

All the code is in the app folder. This structure will evolve over time.

Getting started

npm install

grunt dev (starts dev server and watches for changes apparently)

Visit http://localhost:3001/index.html

Few flux guidelines

  • State is always stored in the store and only synced with component as near to the top as it makes locigal sense
  • Stores are read only - they don't allow state changes directly but implement listeners that change state when dispacher tells them
  • Stores inform components about changes in state through change event
  • Stores fetch models - components never do this but get them from the props in most cases, or from the state in some cases (top components)
  • Navigation goes through navigation store and only navigation store accesses the router