Git Product home page Git Product logo

clean's Introduction

Update 12/6/2015

We're no longer developing or maintaining this codebase. If you want to learn more or have any questions feel free to get in touch with the original team:

CalFresh and So Clean

Build Status

Making applying to the CalFresh program not suck.

How it sucks now

If you want to understand the genesis of the project, click here.

Click here to experience what it's like to apply to CalFresh right now.

What's this?

A user-friendly web form with the minimal fields necessary that generates a PDF application and faxes it in to HSA.

Local setup

  • Install Ruby version 2.1.5
  • Install system dependencies pdftk and imagemagick (use Homebrew on OSX or apt-get on Debian/Ubuntu)
  • Install Redis with brew install redis
  • Install Ruby dependencies with bundle install

Set the environment variable REDISTOGO_URL to redis://localhost:6379 and start your local Redis server with redis-server

This app uses the Postgres database, so make sure that is running locally when you start your app up. (We recommend using Postgres.app on OSX.) Set the POSTGRES_USERNAME and POSTGRES_PASSWORD environment variables for your local Postgres database.

Then, create the databases for the app by running:

bundle exec rake db:create

You can now run the app by running:

rails s

and navigating in your browser to http://localhost:1234

For email capabilities we use Sendgrid, so for that set the following environment variables:

  • SENDGRID_USERNAME
  • SENDGRID_PASSWORD
  • EMAIL_ADDRESS_TO_SEND_TO

We also password protect the output application in a ZIP file and you can set the password with the ZIP_FILE_PASSWORD environment variable.

To run tests, run:

rake spec

SSL

If RACK_ENV is set to anything other than the default (development) then all unencrypted HTTP requests will be redirected to their HTTPS equivalents.

Put another way: when developing locally, you should be good to go. If you're deploying, you will need to configure SSL (works by default on Heroku if you're using their default XXX.herokuapp.com domain for your app).

Deployment to Heroku

heroku create YOURAPPNAMEGOESHERE
heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
git push heroku master
heroku config:set PATH=/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/2.1.0/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/pdftk/bin
heroku config:set LD_LIBRARY_PATH=/app/vendor/pdftk/lib

Metrics on production deployment

Our primary metrics are:

  • of approved applications (quantity)

  • % of submitted applications approved (quality)

Metrics

(# of submitted apps shown for context)

Copyright and License

Copyright 2014 Dave Guarino MIT License

clean's People

Contributors

daguar avatar alanjosephwilliams avatar lippytak 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.