What is the best way to store data locally?

Asked

Viewed 87 times

1

I need to develop a web system to run without a server, the system in question will only save client data and schedules. I would not like to use a database server, because it becomes annoying that the client has to start the server whenever using the system. That’s why I want to save without using a server. I considered using JSON but it doesn’t seem very viable, and I also considered the Indexeddb API, but it seems to be very complicated. Is there any other way in which the customer just needs to open the browser and use the offline system ?

1 answer

1

Look, I think it’s not feasible for some reasons. I know 3 ways to store data locally:

  • In the browser localstorage
  • In a file . csv
  • In a database

In localstorage it is impossible to store this kind of data because there is a storage limit that is extremely low(In Chrome I think it is 10mb).

In file . csv(excel table) you would also have to have a server running the application and also a lot of work.

The best option is to create a database! and the customer will not need to open the database every time they use it! the bank automatically starts together with the OS as a background process. You can use the client’s local host to host the server in a Docker container that runs alone when it turns on the computer. (I’ve never done this, but I’m pretty sure it works, do some research on).

  • Thank you very much, I’ll do as you say

  • Why did you assume that the amount of data that will be saved is higher than the localstorage limit?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.