Using Appery Model
Hello,
I am trying to implement a feature into my app that requires handling lots of data locally. User story is as follows:
1) User must be able to save to local device (not do DB) no less than 10 different meal sets.
2) Each meal set has 5 separate properties.
3) Each meal may consist of up to 7 food components.
4) Each food component has 5 separate properties.
As you can see it would require more than a hundred of separate local storage variables to handle this scenario and would be ineffective.
I tried to use Appery Model and created such structure:
with local storage variable called FoodSet:
I have read this tutorial here: https://devcenter.appery.io/documenta...
but somehow I am not sure if this approach is correct. My question is how can I save data that does not come from database but is generated locally on the device into Appery Model via JavaScript?
I am aware that there is GET, SET, and UPDATE in Appery API but I can't see directly how could I use it in my scenario.
I would greatly appreciate any guidance.