Skip to content

πŸ’» Implemented Passport.js to design an Authentication Middleware

Notifications You must be signed in to change notification settings

anshdhinhgra47/Authentication-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Authentication System

Created an Authentication System

  • The master branch contains the authentication system using Passport.js
  • The manual-local-auth branch contains Manual Authentication system

Folder Strucutre

This project supports the MVC structure. You can learn more about the MVC structure here

codeial
β”œβ”€β”€ index.js
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ .gitignore
β”œβ”€β”€ assets
|    └── css
|         └── layouts.css
|         └── styles.js
β”œβ”€β”€ models
|       └── user.js
β”œβ”€β”€ views
|      └── _footer.ejs
|      └── _header.ejs
|      └── home.ejs
|      └── layout.ejs
|      └── user.ejs
|      └── user_profile.ejs
|      └── user_sign_in.ejs
|      └── user_sign_up.ejs
β”œβ”€β”€ routes
|      └── index.js
|      └── user.js
β”œβ”€β”€ controllers
|      └── home_controller.js
|      └── user_controller.js
β”œβ”€β”€ config
       └── mongoose.js
       └── passport-local-strategy.js

Installing the dependencies

$ npm install dependencies

Starting the project

Make sure you change the directory to codeial

$ cd codeial

Now type in the following command to start the project:

$ npm start

About

πŸ’» Implemented Passport.js to design an Authentication Middleware

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published