Nodejs
app connected with mysql
database which uses
Nexmo
For sending Messages to mobile with the self generated verification code.
Nexmo
is a messaging app which helps us to send msgs from web apps.
https://www.nexmo.com/
Nexmo having 2Euro free msg option. After that we need to upgrade for getting more functionalities.
For testing purpose add the 'Mobile Number' in this link https://dashboard.nexmo.com/test-numbers
Mysql Db is used. Check the mysqlnode.sql file. Import it into ur database. We are generating random numbers from the code itself and saving it in the database. No need to use any third party tools for sms authentication.
download this file or clone it
Run npm install
and all the dependencies will be installed into the project
To run the project type node index
, application will be live on port 3000
Regiser the details in the first form
Then it will take you to verification form which it asks your phone number and security code(received in mobile number)
Afte giving the correct input it will redirect to the sucess page
and in daabase users table
the user_status
field will be updated to 1
which means user is updated
npm install express body-parser nexmo mysql -- save
#happycoding