Skip to content

Michi441/ExpressAuthentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressAuthentication

Authentication System with ExpressJS + PassportJS and MongoDB.


You can find the tutorial for this repo here: https://www.youtube.com/watch?v=Ntg_1jA6KAo



This repo shows how to add authentication to ExpressJS with PassportJS and MongoDB.
The reason why i used PassportJS for this project is because it adds just some few lines of more additional code, but let's you add later on a lot more strategies. However, the part of the code that drives the authentication is pretty much the same as without the use of PassportJS.

For this repo, i used the passport-local strategy. You can add additional strategies. Adding strategies, follows the same principle as shown in this repo. You can find all the avaible strategies here: http://www.passportjs.org/packages/

Dependencies in this repo:
  • ExpressJS
  • Mongoose
  • MongoDB
  • PassportJS
  • passport-local
  • bcrypt

How to get started:

  • Clone the repo

  • run npm intall

  • run npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published