/node-authentication

A complete node.js registration and authentication system using passport

Primary LanguageJavaScript

Complete Node.js Registration and Authentication with Passport.js

Technologies used

  • Node.js
  • Express
  • Validator
  • ejs
  • Passport
  • HTML
  • CSS

Essential Features of the application

  • Validates user registration on the following fields
    • username
    • email
    • password
    • confirm password
  • checks whether user is already registered
  • checks email validity
  • checks whether email is already taken
  • accepts only aphanumeric username
  • checks password length for atleast 8 characters

How to install and run the app locally

  • Clone the repo
  • create a .env file and assign the following environment valriables
    • PORT=3000
    • CONNECTIONSTRING=your mongodb connection string
  • Open terminal to run npm install/yarn install to install all dependencies

New fetaures coming out

  • Password reset option
  • Limit user login attempts
  • Authentication with other strategies, e.g facebook, twitter and others

contribute to this project for usage by all