A maintainable web app for the US Go Congress. Copyright (c) 2013 American Go Association
- Prerequisites
- Linux (eg. Ubuntu 12.04+) or Mac OS 10.8+
- Proficiency with git and sql
- Read Getting Started with Rails 3.2
- Fork and clone this github repo
- Install the Ruby version specified in
.ruby-version
.- Use rbenv or compile from source
- Install postgres 9.2
- 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 -T
should list rake tasks
- Configure rails to talk to your database
- Run the tests
bundle exec rake db:setup
bundle exec rake test:prepare
bundle exec rake
will run all specs and 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. jared.beck@usgo.org has access to manage these accounts.
Special thanks to Lisa Scott, who helped invent, and tirelessly tested, the first year's site in 2011.
- 2013: Chris Kirschner, Judy Debel
- 2012: Arlene Bridges, Bob Bacon, Steve Colburn
- 2011: Lisa Scott, Alf Mikula, Brian David, Andrew Jackson, Steve Colburn