adrianavv1 / Dont-forget-to-take-notes

This is a Note Taker App that uses NodeJS & Express.

Home Page:https://note-takerr12.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dont-forget-to-take-notes

Description

This application can be used to write, save, and delete notes. This is a Nodejs application that uses Express to be able to save and retrieve note data.

application deployed here:

https://note-takerr12.herokuapp.com/

Features

AS A user, I want to be able to write and save notes

And 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

The application allow users to create and save notes, view previously saved notes, and delete previously saved notes.

Technology and Methodology

This NodeJS application uses an Express backend to save and retrieve note data from a JSON file with the following HTML routes:

  • GET /notes - returns the notes.html file

  • GET * - also returns the index.html file

The application has a db.json file on the backend used to store and retrieve notes using the Express method res.sendFile.

The application uses the following API routes:

  • GET /api/notes - reads the db.json file and returns all saved notes as JSON

  • POST /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

  • DELETE /api/notes/:id - receives a query parameter containing the id of a note to delete. This means each note has a unique id when it's saved. In order to delete a note, all notes are read from the db.json file, and the note with the given id property is removed.

About

This is a Note Taker App that uses NodeJS & Express.

https://note-takerr12.herokuapp.com/

License:Apache License 2.0


Languages

Language:JavaScript 60.8%Language:HTML 27.2%Language:CSS 12.0%