Eileen0917 / call-tracking-rails

Call tracking demo app in Rails

Home Page:https://www.twilio.com/docs/tutorials/walkthrough/call-tracking/ruby/rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twilio

Call Tracking - Rails

Build Status

Use Twilio to track the effectiveness of your different marketing campaigns. Learn how call tracking helps organizations in these Twilio customer stories.

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/call-tracking-rails.git
    $ cd call-tracking-rails
    
  2. Install the dependencies.

    $ bundle install
    
  3. Create a TwiML App.

    This project is configured to use a TwiML App, which allows us to easily set the voice URLs for all Twilio phone numbers we purchase in this app.

    Click here to create a new TwiML app.

    Creating a TwiML App

    You can learn more about TwiML apps here.

  4. Copy the sample configuration file and edit it to match your configuration.

    $ cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings. You will also need a TWIML_APPLICATION_SID, which you may find here.

    Run:

    $ source .env

    to export the environment variables.

  5. Create database and run migrations.

    Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app

    $ bundle exec rake db:setup
  6. Make sure the tests succeed.

    $ bundle exec rspec
  7. Start the server.

    $ bundle exec rails s
  8. 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.

About

Call tracking demo app in Rails

https://www.twilio.com/docs/tutorials/walkthrough/call-tracking/ruby/rails


Languages

Language:JavaScript 75.2%Language:Ruby 20.1%Language:HTML 4.7%Language:CSS 0.0%