No description, website, or topics provided.
Clone or download
Latest commit e51d9c8 Oct 31, 2018
Permalink
Failed to load latest commit information.
.well-known adding dnt policy Feb 27, 2018
app Merge pull request #178 from EFForg/gem-updates Oct 31, 2018
bin Init Rails app Feb 2, 2018
config Send mail in production via ssmtp Mar 15, 2018
db Remove default position value from Scores Mar 19, 2018
docker Fix congress cron job Mar 23, 2018
lib Pass location to AC embed Feb 27, 2018
log Init Rails app Feb 2, 2018
public Make the orange brighter Feb 27, 2018
spec Hide senators May 14, 2018
tmp Init Rails app Feb 2, 2018
vendor Vendor active_material Oct 18, 2018
.babelrc Init Rails app Feb 2, 2018
.dockerignore Send mail in production via ssmtp Mar 15, 2018
.env.example Send mail in production via ssmtp Mar 15, 2018
.eslintrc.yml Set active style for white button in css Feb 14, 2018
.gitignore Use image helpers for production asset paths Feb 21, 2018
.postcssrc.yml Init Rails app Feb 2, 2018
.rspec Add rspec and factory girl Feb 9, 2018
.rubocop.yml Fix Ruby linting errors Feb 6, 2018
.sass-lint.yml removed 'no important' Feb 8, 2018
.travis.yml Configure Travis Feb 7, 2018
Dockerfile Vendor active_material Oct 18, 2018
Gemfile Upgrade rubyzip via selenium-webdriver Oct 31, 2018
Gemfile.lock Update ffi, sprockets, rails-html-sanitizer, loofah Oct 31, 2018
LICENSE Add GPLv3 license Feb 26, 2018
README.md Actually, document user administration on the tech wiki Mar 15, 2018
Rakefile Fix rubocop offenses Feb 26, 2018
config.ru Fix rubocop offenses Feb 26, 2018
docker-compose.yml Automatically update congress members Mar 19, 2018
package.json Merge branch 'master' into dockerize Feb 20, 2018
server.pid styling action form iframe embed Feb 22, 2018
yarn.lock Merge branch 'master' into dockerize Feb 20, 2018

README.md

Check Your Reps

A platform for congressional scorecards.

Development

You will need Ruby 2.3.1, Node 6.0.0+, Yarn, and Postgres. Then run:

  1. Install packages:
  • sudo apt-get libpq-dev
  • gem install bundler
  • bundle install
  • yarn install
  1. Add your database credentials:
  • cp .env.example .env
  • Fill in postgres username and password
  1. Create the default admin user and import Congress members.
  • rake db:seed
  • rake congress:update
  1. rails s

You should now be able to login with the default admin credentials:

You can run all tests and linters with rake test.

Managing content

Managing scores

  1. Visit checkyourreps.org/admin and enter your username and password.
  2. In the top navigation bar, click "Scores".
  3. To add a new score, click "New Score" in the top righthand corner.
  4. To edit an existing score, find it in the list of scores, hover over the three dots on the righthand side, and click "edit".