Skip to content

jayanthanish/Loginform

Repository files navigation

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

video link: https://youtu.be/b5dTmp1kHkM

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published