Simplified passport local authentication for node.js web apps using passport local mongoose
Download or Clone the project, cd expressjs-passport-login
In order to connect to MongoDB, you will need a URI string. Add the connection string and session secret to your environment variables ( L19 and L16 as reference )
Install all the required dependencies by running
npm install
Serve the project
npm start
Server starts on the port http://localhost:3000