Giter Club home page Giter Club logo

automated-survey-spark's Introduction

Twilio

Automated Survey Spark

Build Status

An application example that implements an Automated Survey using Twilio.

Heroku

Deploy

Heroku will automatically configure the environment variables necessary to launch this application. Heroku automatically uses a "Free" dyno, and provisions a "Sandbox" MongoLab instance, so you can play around with this application at no charge.

Run the application

  1. Clone the repository and cd into it.

  2. The application uses Gradle to manage dependencies.

  3. Use the following variables to configure this application when running it locally. Heroku will automatically configure these variables for you.

    • PORT: the application's port number (defaults to port 4567).
    • MONGODB_URI: the address of a MongoDB instance to use (defaults to a MongoDB instance listening on the localhost). Defaults to Test if not specified.
  4. Configure Twilio to call your webhooks.

    You will need to configure Twilio to call your application when SMSs and calls are received.

    You will need to provision at least one Twilio number with SMS and voice capabilities so the application's users can trigger the survey. You can buy a number right here. Once you have a number you need to configure it to work with your application. Open the number management page and open a number's configuration by clicking on it.

    Configure Voice

  5. Run ./gradlew run to run the application.

  6. Expose the application to the wider Internet using ngrok.

    $ ngrok http 4567

    Once you have started ngrok, update your Twilio's number voice URL setting to use your ngrok hostname. It should look something like this:

    http://<your-ngrok-subdomain/interview (POST)
    
  7. Call your Twilio number and answer the survey! You can check the results at http://<your-ngrok-subdomain/

Run the tests

  1. Run at the top-level directory.

    $ ./gradle check

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

automated-survey-spark's People

Contributors

acamino avatar balamurugan678 avatar brampersandon avatar kathyguerron avatar kwhinnery avatar mcelicalderon avatar mosampaio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.