Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

TwilioDevEd/server-notifications-rails

Repository files navigation

Twilio

Server Notifications & Alerts

SMS notifications are a great way to alert humans quickly when important events happen. In this example, we'll show you how to send SMS notifications to a list of people when an error happens in a web application.

Read the full tutorial here!

Local development

This project is built using Ruby on Rails Framework.

  1. First clone this repository and cd into it.

    $ git clone git://github.com/TwilioDevEd/server-notifications-rails.git
    $ cd server-notifications-rails
  2. Install the dependencies.

    $ bundle install
  3. Copy the .env.example file to .env, and edit it including your credentials for the Twilio API (found at https://www.twilio.com/console/account/settings). You will also need a Twilio Number.

  4. Edit the administrators listed in the config/administrators.yml. Make sure to use real phone numbers otherwise the application won't work.

  5. Make sure the tests succeed.

    $ bundle exec rails test
  6. Start the development server:

    $ bundle exec rails s
    
  7. Check it out at http://localhost:3000.

Meta

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