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/
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
There are 2 routes
- User routes
- Note routes
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 |
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 |
POST /note/
Parameter | Type | Description |
---|---|---|
title |
string |
Required. Set the title of the note |
description |
string |
Required. Set the description |
PUT /note/{$id}
Parameter | Type | Description |
---|---|---|
title |
string |
Required. Set the title of the note |
description |
string |
Required. Set the description |
DELETE /note/{$id}
GET /note/
200 : Successful request
400 : User already exists / Invalid Credentials
404 : User not found / Bad request
500 : Something went wrong
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