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
- Javascript
- Express
- express-session
- express-ejs-layouts
- HTML
- Bootstrap Theme from Bootswatch(Sktechy)
- Layout Engine EJS
- bcryptjs for encryption
- MongoDB
- Mongoose for mongoDB object modeling
- Passportjs as Authentication Middleware
- nodemon to watch server
- connect-flash to manage flash messages