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.