A Demonstration of the Twilio SMS services using Node.js, MySQL, and the Twilio Programmable SMS API.
This is a Node.js program to demonstrate the Twilio Programmable SMS API by sending SMS messages to survey participants. Participants get questions and respond to answers. Answers are saved into a MySQL database. A winner of the contest is determined by who answers the most number of questions correctly.
Step 1. Install Node.js.
Step 2. Install MySQL.
Step 3. Install Express.
Step 4. Install Twilio helper libraries.
Step 5. Install the MySQL node Module.
Step 6. Input your twilio phone in the config file as the "from" number.
Step 7. Run the Node.js program with the commands "node questions.js".
Using the demonstration is very straightforward. Display your Twilio phone number and request participants to text the number. The Node.js program will respond to the text with questions and will accept their responses to the questions and compare them to a list of acceptable answers and log which ones the participants gets correct.
A Twilio account
A Twilio phone number
Node.js
MySQL
- Mark Shavers - Initial work - shavez00