Skip to content

This project provides understanding on Authorization and Authentication using Bcrypt, JWT and Cookies.

Notifications You must be signed in to change notification settings

pratikkatkar-13/Authz_Authn_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authz_Authn_Backend

npm init -y - To install all package.json file npm i express - To install all nodes modules and express node .js - Generally to run all the server

npm i nodemon - Same as frontend liveserver auto sync and up to date makes changes in pacakage.json files as follows: "scripts": { "start": "node index.js", "dev": "nodemon index.js" }, npm run dev - to run server

npm i dotenv - to export enviornment variables seperately npm i mongoose - to connect server or application with MongoDB database

npm install jwtwebtoken - to use verify() and sign() function npm install bcrypt - to hash the password to Datbase entry npm install cookie-parser - to parse the cookies

Additionally project needs

  1. MongoDB setup
  2. MongoDB Shell
  3. MongoDB compass
  4. Postman API setup

//routes to test http://localhost:3000/api/v1/signup http://localhost:3000/api/v1/login http://localhost:3000/api/v1/test http://localhost:3000/api/v1/student http://localhost:3000/api/v1/admin

About

This project provides understanding on Authorization and Authentication using Bcrypt, JWT and Cookies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published