nishikantparmariam / NodeJsAuthenticationSystem

Nodejs, MongoDB and ExpressJs based user login, sign up system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authentication System

Nodejs, MongoDB and ExpressJs based user login, sign up system which uses "express-session" module for storing user data in a session and "EJS" templating engine for dynamic rendering.

Key Features

  1. Saves new user data to MongoDB.
  2. Allows only one user per username.
  3. Uses "bcrypt" for saving password to MongoDB and comparing while login.
  4. Checks if username is available or not while typing username on sign up page. (optional)
  5. Goes to "home" page if user is logged in and renders user details.
  6. Doesn't allow user to visit home page if not logged in.
  7. Gives 404 error page if user tries to visit any other page than login, signup, home page.

Working Snapshots

alt text alt text alt text alt text

About

Nodejs, MongoDB and ExpressJs based user login, sign up system


Languages

Language:HTML 52.7%Language:JavaScript 47.3%