leeschumacher / gocongress

Annual US Go Congress Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gocongress

A maintainable web app for the US Go Congress. Copyright (c) 2015 American Go Association

Code Climate Dependency Status

Contribute

  1. Prerequisites
    1. Linux (eg. Ubuntu 14.04+) or Mac OS 10.8+
    2. Proficiency with git and sql
    3. Read Getting Started with Rails
    4. Fork and clone this github repo
  2. Install the Ruby version specified in .ruby-version.
  3. Install postgres 9.3.3+
    1. Practice connecting using the command-line client, psql
    2. Make sure you have a role that can create tables
  4. App dependencies
    1. Install a js runtime
    2. Install ruby gems using bundler
      1. gem install bundler
      2. bundle install
      3. If a gem fails to install, it may be missing native libraries
        1. nokogiri needs libxml2 and libxslt
        2. pg needs libpq-dev
  5. App configuration
    1. Configure rails to talk to your database
      1. cp config/database.example.yml config/database.yml
    2. cp .env.example .env (see Configuration below)
    3. If all is well, bundle exec rake -T should list rake tasks
  6. Run the tests
    1. bundle exec rake db:setup
    2. bundle exec rake db:test:prepare
    3. bundle exec rspec will run the tests. If they all pass, you're good to go.
  7. Submit your contribution
    1. Write a spec that describes your contribution
    2. Push your changes to your fork on github
    3. Submit a pull request

Configuration

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 gocongress.org

Email for accounts in the gocongress.org domain is managed through Google Apps. steve.colburn@usgo.org has access to manage these accounts.

Thanks

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

About

Annual US Go Congress Website

License:MIT License


Languages

Language:Ruby 77.0%Language:HTML 18.7%Language:CSS 3.8%Language:Shell 0.3%Language:JavaScript 0.2%