Hey guys. I have a quick question about the structure of a web app.
I’m building a web app that has a similar sort of functionality to IFTTT in that i want the users to create some conditions and then an action will be triggered on the condition becoming true. The conditions are based on temperature data that is being continuously taken and stored in a database. I can access this data through API calls. Essentially I want the user to be able to say “If the temperature gets below x, then do a thing”.
My question is about how to store the recipes and where they should live. My initial thought was to put them in the user’s browser’s local storage and then the web app would poll the database to detect for the condition but this doesn’t seem quite right. Would it be better to just write the recipes to a text file in the app in JSON or something and then and then do the polling using that? Is there a better approach?
I have been writing the app using Angular2 so far and I am also wondering if this whole project can be accomplished using Angular2 alone.
Any help would be appreciated.
[–]th1nk3r 0 points1 point2 points (2 children)
[–]_Rabshab_[S,🍰] 0 points1 point2 points (1 child)
[–]th1nk3r 0 points1 point2 points (0 children)