Git Product home page Git Product logo

anonymous-communications-rails's Introduction

Twilio

Airtng App: Part 2 - Anonymous Calling and SMS with Twilio

Protect your customers' privacy, and create a seamless interaction by provisioning Twilio numbers on the fly, and routing all voice calls, and messages through your very own 3rd party. This allows you to control the interaction between your customers, while putting your customer's privacy first.

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 [email protected]:TwilioDevEd/anonymous-communications-rails.git
    $ cd anonymous-communications-rails
  2. Install the dependencies.

    $ bundle install
  3. Expose your application to the wider internet using ngrok. This step is important because the application won't work as expected if you run it through localhost.

    $ ngrok http 3000

    Your ngrok URL should look something like this: http://9a159ccf.ngrok.io

    You can read this blog post for more details on how to use ngrok.

  4. Configure Twilio App to call your webhooks.

    Before you can run this app you need to go into your account portal and create a new Twilio Application. Once you have created an app the urls should look like:

    Voice: https://<ngrok_subdomain>.ngrok.io/reservations/connect_voice

    SMS & MMS: https://<ngrok_subdomain>.ngrok.io/reservations/connect_sms

  5. 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 TWILIO_NUMBER, which you may find here.

  6. Create database and run migrations. Be sure to have SQLite installed before running this command.

    $ bundle exec rails db:setup
  7. Make sure the tests succeed.

    $ bundle exec rspec
  8. Start the server.

    $ bundle exec rails s

That's it!

Meta

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.