Code takem from scotch.io tutorial series: Complete Guide to Node Authentication
Using Passport to authenticate users locally.
This is modified from the original scotch.io by removing twitter, google and facebook auth.
If you would like to download the code and try it for yourself:
- Clone the repo:
git clone [email protected]:hagaik/easy-node-authentication
- Install packages:
npm install
- Change out the database configuration in config/database.js
- Launch:
node server.js
- Visit in your browser at:
http://localhost:8080