Skip to content

Repository files navigation

Note Management App

Objective: To design and implement a simple Notes Management Web Application using NodeJs and Express.

Technologies Used

Framework : NodeJs, ExpressJs Database : MongoDB REST API

Build Setup

git clone https://github.com/ProgrammingWithSid/NotesManagement-backend

Install Dependencies

npm install

Server at localhost:3000

API Endpoints

User

  • GET /user/register : Register a User
  • POST /user/login: Login a user.

Notes

  • GET /notes/getAllNotes : Fetch all notes of a particular user.
  • POST /notes/createNote: Create a Note.
  • PUT /notes/updateNote/:id: Update a Note by ID
  • DELETE /notes/deleteNote/:id: Delete a Note by ID.
  • PUT /notes/toggleNote/:id: Toggle to Read and unRead a task by ID.

API References

Register a User

  GET /user/register

Body :

{
    "first_name": "Satender",
    "last_name": "kumar",
    "email":"satenderk8700@gmail.com",
    "password":"12345678"
}

Login a User

  GET /user/login

Body :

{
    "email": "satenderk8700@gmail.com",
    "password": "12345678"
}

Get all Notes of a user

  GET /notes/getAllNotes

Header :

  Cookie: auth-token "access_token"

Add a new Note

  POST /notes/createNote

Header :

  Cookie: auth-token "access_token"

Body :

{
    "title": "Testing Add Note",
    "description": "Now testing add Note"
}

Update a Note

  PUT /notes/updateNote/:id
Parameter Type Description
id id Required.

Header :

  Cookie: auth-token "access_token"

Body :

{
    "taskName": "Testing Update View",
    "description": "Now testing Update view"
}

Delete a Note

  DELETE /notes/deleteNote/:id
Parameter Type Description
id id Required.

Header :

  Cookie: auth-token "access_token"

Connect @

Personal

Name: Satender Kumar

Gratitude

Thank You

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages