- 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.
forked from sitepoint-editors/LocalPassportAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
devtutorials/LocalPassportAuth
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Repo for the tutorial "Local Authentication using Passport with Node.js" written for SitePoint
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 82.7%
- HTML 17.3%