1
I have the following scenario.
I have a news site on ASP.NET MVC
that currently when accessing it, all information is taken from the bank. I want to take these requests from Front.
I thought I’d make a file Data.json
and every time a news was recorded would save in bank and archive upon need.
Ex: Every time the site is open I go to the bank and look for the 5 latest news on Politics and Sports, as I already know how many news from each publishing house I need to present in Frontend, would create only the necessary in the archive.
But as it is not a bank, when you need to "Deactivate" a news for example, you would have to go in the file, remove that news and put another to not break the Frontend scheme.
Is it feasible to do a CRUD to do these operations in the JSON file? Does anyone know a better scheme to get to this point?
You want something like that? https://github.com/typicode/lowdb
– Leonel Sanches da Silva
@gypsy-Morrison-Mendez Exactly this, but I confess that I have no idea how to implement Lowdb with Asp.NET MVC.
– Hermes Autran
I don’t know how to use it either. I’ll have to give you a study to answer.
– Leonel Sanches da Silva
No problem! I’m researching too!!
– Hermes Autran