- Description
- [license](# License)
- [screenshot] (#screenshot)
- Contribution
- Question
Created an Application with node and Express(back-end), which connected with front-end(which one was given as a starter code) and entire deployed to Heroku. that can be use for write data, save data and delete data.Utilizing JSON.file for data storage.
AS A small business owner I WANT to be able to write and save notes SO THAT I can organize my thoughts and keep track of tasks I need to complete
On the back end, the application should include a db.json file that will be used to store and retrieve notes using the fs module.
The following HTML routes should be created:
-
GET /notesshould return thenotes.htmlfile. -
GET *should return theindex.htmlfile.
The following API routes should be created:
-
GET /api/notesshould read thedb.jsonfile and return all saved notes as JSON. -
POST /api/notesshould receive a new note to save on the request body, add it to thedb.jsonfile, and then return the new note to the client. You'll need to find a way to give each note a unique id when it's saved (look into npm packages that could do this for you). -
DELETE /api/notes/:idshould receive a query parameter that contains the id of a note to delete. To delete a note, you'll need to read all notes from thedb.jsonfile, remove the note with the givenidproperty, and then rewrite the notes to thedb.jsonfile.
MIT
N/A
##Question;
Github Username: phvania Email: vaniapriti@gmail.com

