Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dhruvathaide/twofactorauthentication--mongodb
- Owner: DhruvAthaide
- Created: 2024-01-10T08:35:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-16T04:19:18.000Z (9 months ago)
- Last Synced: 2024-02-16T05:25:19.404Z (9 months ago)
- Topics: ejs, express, nodejs, passport-local, passportjs, two-factor-authentication, twofactorauth
- Language: EJS
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: