Giter VIP home page Giter VIP logo

balance's Introduction

Balance

Build Status

A text message interface for people to check their EBT card balance for SNAP and other human service benefits

Alt text

Currently available in:

  • California
  • Texas
  • Missouri
  • Pennsylvania

What it is

This is a simple Ruby app built on Twilio that creates a text message interface for people to check their food stamp EBT card balance (and cash balance for other programs).

The original idea was by @lippytak with influence from @alanjosephwilliams's experience on Code for America's health project ideas repo.

This is a project of CFA's Health SpecOps Team.

Metrics

Our primary metrics are:

  • of successful balance checks (growth)

  • of unique users with 1+ successful balance checks (growth)

  • % of users who check their balance more than once (engagement)

Metrics

(click for interactive graph - sorry it's so slow!)

Deployment

To deploy on Heroku, close and push the repo, and then set the following environment variables:

  • TWILIO_SID
  • TWILIO_AUTH

with your Twilio credentials.

Then, go onto your Twilio account and purchase a phone number. Configure that phone number with the following request URLs:

Voice: http://my-balance-url.herokuapp.com/voice_call (choose HTTP POST from dropdown)

Messaging: http://my-balance-url.herokuapp.com (choose HTTP POST from dropdown)

Running tests

Because we use .env for testing, you'll want to run your tests by running:

foreman run bundle exec rspec spec

Twilio Console

The twilio_console.rb file just gets you a quick Ruby prompt with Twilio clients pre-loaded. This is useful for doing manual responses to users. To use this, you will need to set the environment variables specified in that file.

Ops Details

Twilio

We have isolated Twilio subaccounts for the app, under CFA's main account.

  • Staging: balance-health-guarino
  • Production: balance-production-guarino

Each account has phone numbers attached to it.

For A/B testing different outreach media, we can buy a new phone number on the same Twilio subaccount and point it to the same server URL.

Servers

We're deployed on Heroku on CFA's main account with both staging and production instances. Currently only @daguar is configured as a collaborator.

Copyright & License

Copyright Code for America Labs, 2014 — MIT License

balance's People

Contributors

daguar avatar lippytak avatar ondrae avatar dget avatar gregbaugues avatar

Watchers

James Cloos avatar  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.