Skip to content

GeekLord04/Notes-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes API

A simple Notes API with Singup and Signin feature along with creation, updation and deletion of notes.

MongoDB is used the NoSQL Database.

This is API is currently hosted on https://chirag-notes-api.up.railway.app/

Installation

Firstly install the latest version of NodeJS in your local machine.

Check the version of NodeJS using this command

  node --version

Clone and install all the required packages with npm

  git clone https://github.com/GeekLord04/Notes-API.git
  cd Notes-API
  npm install

API Reference

There are 2 routes

  1. User routes
  2. Note routes

User routes

Signup (Create new user)

  POST /users/signup
Parameter Type Description
username string Required. Set a username for the user
email string Required. The email of the user
password string Required. Set the password for the user account

Signin (Login the user)

  POST /users/signin
Parameter Type Description
username string Optional. Set a username for the user
email string Required. The email of the user
password string Required. Password of the user

Note routes

Create new note

  POST /note/
Parameter Type Description
title string Required. Set the title of the note
description string Required. Set the description

Update notes

  PUT /note/{$id}
Parameter Type Description
title string Required. Set the title of the note
description string Required. Set the description

Delete notes

  DELETE /note/{$id}

Get all notes

  GET /note/

Status Codes

200 : Successful request
400 : User already exists / Invalid Credentials
404 : User not found / Bad request
500 : Something went wrong

Run Locally

Clone the project

  git clone https://github.com/GeekLord04/Notes-API.git

Go to the project directory

  cd Notes-API

Install dependencies

  npm install

Start the server

  npm start

About

A Simple Note API developed using ExpressJS. MongoDB is used for saving all the required data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published