A maintainable web app for the US Go Congress. Copyright (c) 2015 American Go Association
- Prerequisites
- Linux (eg. Ubuntu 14.04+) or Mac OS 10.8+
- Proficiency with git and sql
- Read Getting Started with Rails
- Fork and clone this github repo
- Install the Ruby version specified in
.ruby-version.- Use rbenv or compile from source
- Install postgres 9.3.3+
- Practice connecting using the command-line client,
psql - Make sure you have a role that can create tables
- Practice connecting using the command-line client,
- App dependencies
- App configuration
- Configure rails to talk to your database
cp config/database.example.yml config/database.yml
cp .env.example .env(see Configuration below)- If all is well,
bundle exec rake -Tshould list rake tasks
- Configure rails to talk to your database
- Run the tests
bundle exec rake db:setupbundle exec rake db:test:preparebundle exec rspecwill run the tests. If they all pass, you're good to go.
- Submit your contribution
ENV variables are stored in a .env file, which is git-ignored.
Most of these variables don't belong in source control because they
are secret. Others vary by deployment level. This file will be
loaded by the dotenv gem.
For local development, cp .env.example .env to get started. I wish
we could use foreman to load .env, but it doesn't work with
pry or guard and it's overkill for one process. For stage and
production use heroku config.
Email for accounts in the gocongress.org domain is managed through Google Apps. [email protected] has access to manage these accounts.
Special thanks to Lisa Scott, who helped invent, and tirelessly tested, the first year's site in 2011. Special thanks to Jared Beck, who provided mentoring and assistance for the 2014 site.
- 2014: Jared Beck, Andrew Jackson, Matthew Hershberger, Chris Kirschner, Steve Colburn
- 2013: Chris Kirschner, Judy Debel
- 2012: Arlene Bridges, Bob Bacon, Steve Colburn
- 2011: Lisa Scott, Alf Mikula, Brian David, Andrew Jackson, Steve Colburn
