# 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

