Coder Social home page Coder Social logo

voicemailer.rb's Introduction

Here for a work sample?

Thanks for taking a look at my code! This project sends SMS and voicemails from my US phone numbers to my email while I'm traveling abroad.

Design goals for this project

✅ Handle multiple phone numbers per installation via simple configuration

✅ Include no persistent state for easy redundancy by running multiple environments round-robin-style

✅ Easy-to-test core libraries and appropriate test suite

✅ Authenticate all API traffic from Twilio

Where to start

  • app.rb is the core controller, handling incoming requests from Twilio, authenticating requests, and routing behavior based on the appropriate phone number
  • lib/response.rb generates TwiML, Twilio's XML instruction set for answering calls, requiring number keys ("press 5 to leave a message"), and recording audio. The Response.build method handles the boilerplate for generating TwiML, while the other methods are called from app.rb
  • The test suite covers success and failure cases of the app's functionality and includes helpers to mock Twilio's request-signing functionality.

voicemailer.rb

Voicemail-to-email and SMS-to-email, backed by Twilio.

Getting Started

Voicemailer.rb requires Ruby 2.3.0+, Twilio API credentials, and an SMTP gateway (you can use your Gmail account).

Local Installation

From your command-line:

git clone [email protected]:agerdes/voicemailer.rb.git
cd voicemailer.rb
bundle install

Running Tests

The following command runs the test suite:

rake test

If all assertions run with no failures, you've successfully installed the project to your local environment!

Copyright (c) Aaron Gerdes. All rights reserved.

voicemailer.rb's People

Contributors

agerdes avatar

Watchers

 avatar

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.