This is a complete authentication app built with Node.js, Express, Passport, Mongoose and some other packages. It's connected to the MongoDB database.
In the application, user can log in to his account and enter a personal dashborad. If the user doesn't have an account, he can register a new one.
If an unauthenticated person wants to access a personal dashboard, the application will open the login page with error massage displayed - You must be logged in to view this page
.
To install packages
$ npm install
To run app
$ npm start
Or you can run with Nodemon
$ npm run dev
Open config/keys.js
and replace all uppercase items with the your config from MongoDB.