Skip to content

MehulD96/Blogging-app-API-with-Node.js-express.js-MongoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogging app API with Node.js

In this project we are going to signup a user and make his blogging profile, add blogs using Node.js, mongoDB and Express.js. this API will use JWT tokens as authentication.

Installation

install nde modules

  npm install --y

Install packages required, mentioned in package.json file

  npm install /*packages*/

paste the link of your MongoDB server

  configure your mogodb server

Run the project

  node app.js

Routes

  • to get all user in the database -> .get("/",getAllUser);
  • to signup a user -> .post("/signup", createUser);
  • to login a user -> .post("/login" ,loginUser);
  • to delete a user -> .delete("/delete/:id", loggedInUserOnly,- deleteUser);
  • to update an existing user -> .put("/update/:id", loggedInUserOnly,upadateUser);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published