An application that can be used to write, save, and delete notes. This application uses an express backend, and save and retrieve note data from a JSON file.
Code quality and validation
Repository Status
License
The application frontend has already been created, it's your job to build the backend and connect the two.
Main elements:
-
Write, save, and delete notes
-
The application should have a
db.json
file on the backend -
The following API routes should be created:
-
GET
/api/notes
- Should read thedb.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 thedb.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 uniqueid
when it's saved. In order to delete a note, you'll need to read all notes from thedb.json
file, remove the note with the givenid
property, and then rewrite the notes to thedb.json
file.
-
In order to accomplish the challenge, the following steps were done:
- Understand the purpose, concept and frontend functionality of the application.
- Research assets.
- Include dependencies.
- Develop and test HTML and API routes.
- Link frontend with the backend.
- Final review and proper documentation.
With the described process we were able to create a useful and efficient fullstack application that write, save, and delete notes.
User story
- As a user, I can write and save notes, so that I can organize my thoughts and keep track of tasks I need to complete.
- As a user I can delete notes I have wirtten before, so that I can keep my notes updated.
The application
The project was uploaded to GitHub at the following repository: https://github.com/jorguzman100/11_Note_Taker
You can access the deployed application with the Heroku link: https://fierce-earth-57501.herokuapp.com/
To install the project follow these steps:
- Clone the application from GitHub with:
- git clone [clone link from GitHub]
- From the root folder, install the dependencies with:
- npm install
- Run the app with:
- node server.js
Third Party Assets
- 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.
If you have questions or you want to share comments, I will be glad to hear from you. Please contact at [email protected].