Node application using Passport Authentication middleware. It uses Passport Local Strategy to authenticate user against the username and password stored in mongodb. This project includes the registration page, login page and logout functionality.
The easiest way to get started is to clone the repository:
#Clone the Repository
$ git clone https://github.com/mohasinsutar/passport-demo passport-demo
#Change Directory
$ cd myapp
#install dependancy using npm or yarn
$ npm install or $ yarn install
#then simply start your application
$ npm start or $ yarn run start
Note:* You can install Yarn through the npm package manager. If you already have Node.js installed then you should already have npm. Once you have npm installed you can run:
npm install --global yarn
Note: I highly recommend installing Nodemon. It watches for any changes in your node.js app and automatically restarts the server.