These are chat archives for jdubray/sam-examples

22nd
Apr 2016
dnson
@imnutz
Apr 22 2016 16:25

@jdubray my another attempt using SAM to build webapp :relieved:
https://github.com/imnutz/dashboard

In this, I tried to split the webapp into folders and components.
May you take a look?

Jean-Jacques Dubray
@jdubray
Apr 22 2016 17:31
sure, you are amazing! thank you for all your contributions.
Jean-Jacques Dubray
@jdubray
Apr 22 2016 17:58
the actions are about validating and enriching
It looks great except for one thing, I would not put the CRUD operations (services) in the actions and call these actions from nap(). Logically this is truly what happens but IMHO, it is better when the model persists its values
There could be some race conditions that occur when you handle the persistence with nap()