Skip to content

bugsbunny5290/jsAuthApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication sample application

Description

This application is a simple authentication application which lets its user create an account via register tab, and then login to access the dashboard.

You are taken to a welcome page which has two options, Register and Login. If you are a new user, you have to register. Register form asks you some basic information and checks if all the fields are filled. The password value is hashed and stored in cloud database (mongodb).

Once you register, you are greeted with a flash message (using connect-flash) that you can login. Log-In form checks if your email and password matches the value stored. Note that password you entered is matched with the hash value stored, it is not at any point being decrypted. bcryptjs is being used to compare values.

To install:

  • Clone this repo: git clone https://github.com/bugsbunny5290/jsAuthApp.git
  • Install dependencies using npm javascript package manager: npm install
  • Start node server using nodemon: npm run dev
  • Tune to url: http://localhost:5000

Technologies and packages