/LocalPassportAuth

Repo for the tutorial "Local Authentication using Passport with Node.js" written for SitePoint

Primary LanguageJavaScript

Local Authentication with Passport and Mongo

  • clone the repo
  • npm install
  • Install MongoDB
  • Run mongod locally
  • Using Mongo cli, create a db MyDatabase with a collection userInfo.
  • Add a few users to your collection with fields username and password
  • Run the app with: node index.js
  • navigate to localhost:3000 and login with one of the credentials you created.