Answer the question
In order to leave comments, you need to log in
Using lowdb in a small project. Is such a scam possible?
Good time.
I’ll immediately explain that my level of knowledge in nodejs is zero, hence I had a question to which I could not find an answer myself.
I'm redoing a landing page for a friend. He ordered it on freelance (tilde) a couple of years ago, but the price list for services and promotions has not been relevant for a long time. I rewrote it from scratch, with a different ui, and he asked: - Can I change prices?
Options, as I see it, I have the following: -
Pull on cms. I would not like to do this. I don't know anything about pulling templates on cms, and then I have to give him instructions on the admin panel, which I also don't want to do for the sake of changing six price values.
-parse from somewhere where he could change them manually, but there are no other services.
And so I came across lowdb.
The question is actually this: will it work if I write a tiny admin panel on react, in which his account will be hardcoded, and there will already be a connection with db.json. this admin panel will be on the same hosting, but apart. That is, he changes the values in the admin panel, and they are overwritten in the file on his hosting. Will the file be overwritten in this way on this very hosting and what do the write permissions of the hosts depend on?
And the landing itself will make a request to root/db/db.json and take data from there
. Do I need any knowledge in nodejs for this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question