Giter VIP home page Giter VIP logo

dhruvathaide / twofactorauthentication--mongodb Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 42 KB

I have created a Basic Version of a Two Factor Authentication using MongoDB as the Backend and using Node.js, EJS, Express.js and Passport.js as the Frontend! I have used the Passport-Local Strategy from Passport.js and the local authentication strategy authenticates users using a username and password.

JavaScript 36.78% EJS 63.22%
ejs express nodejs passport-local passportjs two-factor-authentication twofactorauth

twofactorauthentication--mongodb's Introduction

Two Factor Authentication with MongoDB and Passport JS

I have created a Basic Version of a Two Factor Authentication using MongoDB as the Backend and using Node.js, EJS, Express.js and Passport.js as the Frontend! I have used the Passport-Local Strategy from Passport.js and the local authentication strategy authenticates users using a username and password.

Installation

To install and run this project,

You can download the zip file or Clone the Project Repository using Git with the below command:

git clone https://github.com/DhruvAthaide/TwoFactorAuthentication-MongoDB.git

Then, open the terminal in the project directory, and run the following command:

  npm install

Once, you have installed the dependancies for the project using NodeJS, Open your Mongo DataBase using the MongoDB Compass GUI Application click on "Create a Database" and enter the following details:

Database Name: passport
Collection Name: users

Once, you have created the Database to store all the user data, you can run the following command in the terminal of the project directory to start the ExpressJS server using nodemon:

npm run dev

Then, you can paste the following address into your browser to access the LoginSignUp Server:

http://localhost:3000/

Authors

Languages & Tools Used:

html5 css3 javascript mongodb expressjs nodejs

twofactorauthentication--mongodb's People

Contributors

dhruvathaide avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.