Node Register and Login using Passport with Local Strategy.
Other modules used:
- express
- express ejs layouts
- mongoose
- connect flash
- express session
- passport
-
Run from the root of the repository:
npm install -
In this case we are using mongo db from their cloud service, so I created a free account from here: https://account.mongodb.com. Create a free cluster and then paste the credentials in a new file in config/keys.js. Check the config/keys-sample.js for reference
-
Execute:
npm run dev -
See the magic