mardi 2 juillet 2019

How to create a web application with client editable storage?

Imagine a file with 5000 hard coded objects that must be in a specific order. Each of these objects have one property that can be edited by the client via an edit text on a website. What technologies can I use to make this possible?

I have not included editing functionality yet, but I am currently using a json file to store all the objects. I can retrieve the data, but I can not edit it.

Local Storage is very possible, but I need to add the entire objects on initial setup to the Local Storage. I am uncertain as to whether or not this is a good idea considering how many objects I have.

Something like SQL might work except for the in initial setup. I need to add those 5000 objects somehow. Is there an easy way to give the user a "preset" database to start off with?

For example,

            {
              "name": "unit 1",
              "lvl": 1
            },
            {
              "name": "unit 2",
              "lvl": 1,
            },...

I want the lvl attribute to be editable by the client, and to be saved locally.




Aucun commentaire:

Enregistrer un commentaire