I'm building a small program using nodejs that I plan to add as a sort of backend service to an expressJS webserver that I am still yet to develop.
Not wanting to have the whole program on display in the webserver itself, I've read that compiling node project is possible, which seemed like the solution.
Here's the thing: as of right now, whenever I run my index.js, the program performs some tasks and eventually some changes to json files.
I want to keep these changes on the json files for when the program is called once again, the json will remain in the same state as the last execution left it.
Is this the default behaviour? Am I doing something incorrectly?
Thank you.