User Registration & Login systems in
Node.js using MongoDB

What is this for?

This is a Simple User Registration & Login systems app done with Node.js Framework using MongoDB(Atlas) as the data store, Express as the routing system, Body-parser as the parser for webpage, Express-session used to track the user's session and of course Mongoose to make interacting with Mongo from Node easy.

Getting Started

Deployment

This Project is Live on: 🌍 https://reg-login-using-nodejs-mongodb.herokuapp.com/

Running the tests

•Registration Form:

Allows the user to register their account by filling their Email, Username, Password.

•Login Form:

If the user has been registered on the app, can login by passing the credentials.

•User's Profile:

After the user logged in, a simple profile with the user's username and password
displayed with a session Logout button.

•Password Reset:

If the user forget his/her password, can reset by entering the registered Email id
and reset the password.

DataBase:

Here we use MongoDB Atlas(Cloud) as the database. Here we have two collection created, named as:

  • users.
  • sessions.

A Collection(Users) is populated with the user's credentials.



A Collection(session) is created which stores the users Logged session.




Prerequisites

Tools that we need to run this app:

Installing

npm install

Connection to DataBase Access

At line 11 on ./server.js change <DB_USERNAME> with your DataBase UserName & <DB_PASSWORD> with your DataBase Password.

To Run the App

node server.js

The server will start Running on

Author

Author Profile Link
Guru HariHaraun N Guru Roxz

Acknowledgments

  • Hat tip to anyone whose code was used.
  • Special mention to all the Nodejs dev's on youtube 😜



Buy Me A Coffee

Made with ❤️ by Guru Roxz