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:
Making applying to the CalFresh program not suck.
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.
A user-friendly web form with the minimal fields necessary that generates a PDF application and faxes it in to HSA.
pdftk
and imagemagick
(use Homebrew on OSX or apt-get on Debian/Ubuntu)brew install redis
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
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).
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
Our primary metrics are:
(# of submitted apps shown for context)
Copyright 2014 Dave Guarino MIT License