Generate OTP valid for 5 minute and after that system discard the Otp And user can verify OTP.
Simple clone and -
cd backend
npm install
cd frontend
npm install
cd OTP-Generator-Verify
./start.sh
Front-end run at :- http://localhost:3001
Back-end run at :- http://localhost:3000
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 |
Link : https://documenter.getpostman.com/view/7504391/SVYnSgYR?version=latest
Generate OTP and send sms to user mobile no
Verify OTP
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;