Skip to content

TheSTL/OTP-Generator-Verify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTP-Generator-Verify

Generate OTP valid for 5 minute and after that system discard the Otp And user can verify OTP.

Screenshot

home

dashboard

Running Locally

Simple clone and -

cd backend 
npm install
cd frontend
npm install
cd OTP-Generator-Verify
./start.sh

Url

Front-end run at :- http://localhost:3001

Back-end run at :- http://localhost:3000

Admin

Username: admin

Password: admin

Environment Variables

Generate Nexmo api and then in Back-end folder open .env file and set values

Variable Meaning
Database Mysql database name
Database_username Mysql database username
Database_password Mysql database password
NEXMO_API_KEY A api key, generated by Nexmo
NEXMO_API_SECRET A api secret key, generated by Nexmo

POSTMAN collection documentation of API endpoints

Link : https://documenter.getpostman.com/view/7504391/SVYnSgYR?version=latest

Api-endpoints

/api/phone/sendOtp (POST)

Generate OTP and send sms to user mobile no

/api/phone/verify (POST)

Verify OTP

Maintenance

Database Backup / Restore

Backup

mysqldump -u [username] -p [database] > otp_backup.sql

Restore

mysql -u [username] -p
mysql> create database mydb;
mysql> use mydb;
mysql> source otp_backup.sql;

About

Generate OTP and Verify. Admin can see phone no and check if number is verified or not

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors