Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhruvathaide/twofactorauthentication--mongodb

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.
https://github.com/dhruvathaide/twofactorauthentication--mongodb

ejs express nodejs passport-local passportjs two-factor-authentication twofactorauth

Last synced: about 24 hours ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:
```bash
git clone https://github.com/DhruvAthaide/TwoFactorAuthentication-MongoDB.git
```

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

```bash
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:
```bash
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:
```bash
npm run dev
```

Then, you can paste the following address into your browser to access the LoginSignUp Server:
```bash
http://localhost:3000/
```
## Authors

- [@DhruvAthaide](https://github.com/DhruvAthaide)

## Languages & Tools Used:

html5 css3 javascript
mongodb
expressjs
nodejs