Skip to content

digidesk-io/automated-survey-servlets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Survey Servlets

Build Status

An application example implementing Click to Call using Twilio. An application example that implements an Automated Survey using Twilio.

Run the application

  1. Clone the repository and cd into it.

  2. The application uses Gradle to manage dependencies.

  3. Edit the sample configuration file .env.example and edit it to match your configuration.

    Once you have edited the .env.example file, if you are using a unix operating system, just use the source command to load the variables into your environment:

    $ source .env.example

    If you are using a different operating system, make sure that all the variables from the .env.example file are loaded into your environment.

  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 the application using Gradle Gretty plugin.

    $ ./gradlew appRun

    This will run the embedded Jetty application server that uses port 8080.

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

    $ ngrok http 8080

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

    http://<your-ngrok-subdomaon/automated-survey-servlets/survey
    

Dependencies

This application uses this Twilio helper library.

Run the tests

  1. Run at the top-level directory.

    $ ./gradlew test

Meta

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

About

Java Servlets implementation of automated survey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%