Web Application to easily create and deploy survey forms in node JS. It also sends response to WhatsApp using Twilio API.
- Install NodeJS
- Clone this repository
- Install npm packages via
npm install
- Run the application via
node index.js
- Go to form data file formData.json
- Create form in JSON format
- Add formId as unique number and Form Title. After that add Questions, Types, Required field and options.
eg.
[
{
"formId": 1,
"formTitle": "Survey Form", //Title of your form
"formData":[
{
"question": "Name of the Person?", //Question you want to post
"type": "Short Answer", //There are 3 types available: Short Answer, Single Choice and Multiple Choice
"required": true //Set this value to false if answer is optional.
},
{
"question": "Email id of the Person?",
"type": "Single Choice",
"required": true,
"options": ["option1", "option2"]
},
{
"question": "What is your favourite game?",
"type": "Multiple Choice",
"required": false,
"options": ["option1", "option2"]
},
{
"question": "Email id of the Person?",
"type": "Single Choice",
"required": true,
"options": ["option1", "option2"]
}
]
}
]
- Go to formData.json
- Uncomment the commented code
- Add your Twilio accountSid and authToken.