In this video we learn how to read and write json files in Node.js using fs.writeFile. This is an easy way to "mock" a database with JSON. All we have to do is use fs.writeFile() to modify the JSON data, and if you want to READ the data you just import the json file into wherever you're reading from.
#programming #node js #json
https://github.com/foziaShareen/node-...