SMS Marketing Notifications

by leroyg

GitHub Readme.md

SMS Notifications

godfather appointment

Use Twilio to create sms notifications to keep your subscribers in the loop.

Running the application

Clone this repository and cd into the directory then.

$ bundle install
$ rake db:create db:migrate
$ export TWILIO_ACCOUNT_SID=your account sid
$ export TWILIO_AUTH_TOKEN=your auth token
$ export TWILIO_NUMBER=+16515559999
$ rake test
$ rails server

Then visit the application at http://localhost:3000/

In order to receive subscribers you will need to point a twilio number to the app running in production. To do that follow the step to Deploy to Heroku below.

Step 1. Deploy to Heroku

Hit the button!

Deploy

Step 2. Configure your Twilio number

Go to your dashboard on Twilio. Click on Twilio Numbers and choose a number to setup.

On the phone number page, enter https://<appname.herokuapp.com>/incoming into the Messaging Request URL field.

[Request URL]

Step 3. Wrap Up!

Now your subscribers will be able to text your new Twilio number to 'Subscribe' to your Marketing Notifications line.

Congratulations!

Dependencies

This application uses this Twilio helper library:

  • twilio-ruby

Please visit these libraries and pay your respects.