- Install the dependencies.
bundle install
-
In app.rb, configure the following variables accordingly:
TWILIO_ACCOUNT_SID
,TWILIO_AUTH_TOKEN
,TWILIO_PHONE_NUMBER
,TWIML_URL
. -
Start the server and check it out at http://localhost:4567.
ruby app.rb
Generally we should prefer to use the Ruby 1.9 hash syntax.
https://gist.github.com/mosampaio/0771e1322b81600b09f25737c303f4fb/#file-app-rb-L59-L61