Answer the question
In order to leave comments, you need to log in
How to use DB only on client(js)?
I want to make some html file for my own use. In addition to it, I will have, for example, just a text file that replaces the database. How can I display data from a text file using js?
Answer the question
In order to leave comments, you need to log in
No way. The client js has no access to the system.
You can take Noda and Express, then you will have access to the files. But it won't be static html anymore.
You can replace the database with localstorage if this option is ok for you.
By the way, nothing prevents you from hardcoding data from a text file directly into js, for that matter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question