refactored sections

This commit is contained in:
Senad Uka
2015-01-27 06:53:42 +01:00
parent c8a399b98f
commit f27c29fccf
7 changed files with 188 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
# Ribica front office
Front end shop-a (javascript)
Front end of the shop (javascript)
All the code is in the ``app`` folder. This structure will evolve over time.
@@ -12,3 +12,11 @@ All the code is in the ``app`` folder. This structure will evolve over time.
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