Click here to Skip to main content
15,616,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
customers who want this application do not want their databases to be online and therefore would prefer to have them locally.

What I have tried:

ho cercato per parecchio tempo ma nessuno ha una risposta
Updated 10-Jan-23 4:03am

No. Web apps run in a sandbox in the browser and have no direct access to the client computer filesystem for security reasons.

And your server has even less access!

You would have to write a client native application, which could access the local DB - but if you wanted that to communicate with anything online, that gets complicated. Not impossible, but certainly not trivial.
Share this answer
If every user of the site will have their own completely separate database, then you may be able to use the IndexDB API:

IndexedDB API - Web APIs | MDN[^]

However, this will be tied to a specific browser. For example, a user who uses your site to create a database in Chrome would not be able to switch to Edge or Firefox without losing their data.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900