Files are pretty handy. It's a bit surprising how many people seem to have forgotten they are a thing... but not that surprising, given how hard big tech have tried to uninvent them.
Yep. If I have only one express js process - I can just save and load. if it is 1-5 users - lets story all in a single JSON (although sometimes I use excel for storage). People underestimate simplicity
Nice!
Files are pretty handy. It's a bit surprising how many people seem to have forgotten they are a thing... but not that surprising, given how hard big tech have tried to uninvent them.
Yep. If I have only one express js process - I can just save and load. if it is 1-5 users - lets story all in a single JSON (although sometimes I use excel for storage). People underestimate simplicity
That's certainly one of the development strategies of all time
honeslty with ai, i bet this works really well and basically removes all backend complexity
you can also chuck a json blob into LocalStorage
Thank you, yes and indexed db too, as in other comment.
I like to have exactly two API calls.
-- load data (returns json)
-- save data (sends json, returns 200 ok)
That is all! Let frontend bind everything to that json and save it every 1-2 seconds in setInterval.
Use indexeddb
Y tho?