Skip to content

AvishkaLiyanaarachchi/nodeJS_restAPI_with_mongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js rest API

Steps

1.Clone the project

2.npm install

3.npm start

4.open the browser and type http://localhost:3000/ ( End point name)

Technical details

  1. Node.js

  2. mongoDB cloud(https://account.mongodb.com/account/login?nds=true)

    login details

    1. email address - [email protected]
    2. password - ESOFT123
  3. IDE:- Visual Studio Code

End points

  • Client login details
  1. /posts - Fetch all data from database - (GET)
  2. /posts/ID - Fetch data by ID from database - (GET)
  3. /posts - Insert data to the database - (POST)
  4. /posts/ID - Update data from database - (PATCH)
  5. /posts/ID - Delete data from database - (DELETE)

Fetch data

Fetch data by ID

Insert data

Insert data to mongoDB

Update data

Update data to mongoDB

Delete data

Delete data to mongoDB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published