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.
video link: https://youtu.be/b5dTmp1kHkM
Allows the user to register their account by filling their Email, Username, Password.
If the user has been registered on the app, can login by passing the credentials.
After the user logged in, a simple profile with the user's username and password
displayed with a session Logout button.
If the user forget his/her password, can reset by entering the registered Email id
and reset the password.
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.
Tools that we need to run this app:
npm install
At line 11 on ./server.js
change <DB_USERNAME>
with your DataBase UserName & <DB_PASSWORD>
with your DataBase Password.
node server.js
The server will start Running on