Skip to content

adpir/Note_Taker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Note Taker ✨

license Language Command-line Express npm npm node api JSON VisualStudioCode

📝 Description:

Create an application that can be used to write, save, and delete notes. This application will use an express backend and save and retrieve note data from a JSON file.

You will not be able to deploy your server side code on GitHub pages. This app should be deployed on Heroku. Carefully follow the Heroku Guide for getting your app deployed on Heroku.

📷 Visuals:

images
Giphy
Giphy

💻 Installation:

The following HTML routes should be created:

  • GET /notes- Should return the notes.html file.
  • GET * - Should return the index.html file

The application should have a db.json file on the backend that will be used to store and retrieve notes using the fs module.

The following API routes should be created as follows:

  • GET /api/notes - Should read the db.json file and return all saved notes as JSON.

  • POST /api/notes - Should receive a new note to save on the request body, add it to the db.json file, and then return the new note to the client.

  • DELETE /api/notes/:id - Should receive a query parameter containing the id of a note to delete. This means you'll need to find a way to give each note a unique id when it's saved. In order to delete a note, you'll need to read all notes from the db.json file, remove the note with the given id property, and then rewrite the notes to the db.json file.

  • Terminal

  • Visual Studio Code

  • Git Lab

  • GitHub

  • Heroku

  • npm init

  • npm install

Usage:

node server.js

👋 Contributing:

Pull requests are welcome. For major changes,
please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.

:octocat: Profile:

GitHub
Heroku

©️ License

MIT All rights reserved.

About

Create an application that can be used to write, save, and delete notes. This application will use an express backend and save and retrieve note data from a JSON file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors