This application made with Express allows you to take notes and it saves them when you create them. Heroku link https://note-tkr.herokuapp.com/
I thought this was the post request was the best part of this project
app.post("/api/notes", function(req, res) {
try {
noteList = JSON.parse(fs.readFileSync("Develop/db/db.json", "utf8"));
// noteList = JSON.parse(noteList);
req.body.id = noteList.length;
noteList.push(req.body);
// console.log(noteList);
fs.writeFile("./Develop/db/db.json", noteList, "utf8", function(err) {
if (err) throw err;
});
res.json(noteList);
} catch (err) {
console.log(err);
}
npm i
It is pretty self explanatory click the "get started" button and start taking notes
Express, Bootstrap, Util, Axios
MIT
npm test