Here is a tool to help you stay organized - write, save, delete notes!
/notes
- return the notes.html
file.*
- return the index.html
filedb.json
file on the backend is used to store and retrieve notes using the fs
module.
/api/notes
reads db.json
file and returns all saved notes as JSON./api/notes
receives a new note to save on the request body, adds it to the db.json
file, and then returns the new note to the client./api/notes/:id
receives a query parameter containing the id of a note to delete. Each note is given a unique id
when it’s saved.
db.json
fileid
propertydb.json
file### View the Application?
Type npm start to view program on http://localhost:3000/ (currently unable to host on Heroku - out of space)
AS A user, I want to be able to write and save notes I WANT to be able to delete notes I’ve written before SO THAT I can organize my thoughts and keep track of tasks I need to complete