https://github.com/efforg/check-your-reps
https://github.com/efforg/check-your-reps
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/efforg/check-your-reps
- Owner: EFForg
- License: other
- Created: 2018-02-01T23:34:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T00:33:54.000Z (over 7 years ago)
- Last Synced: 2025-01-03T09:17:40.188Z (over 1 year ago)
- Language: Ruby
- Size: 26.1 MB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`
2. Add your database credentials:
* `cp .env.example .env`
* Fill in postgres username and password
3. Create the default admin user and import Congress members.
* `rake db:seed`
* `rake congress:update`
4. `rails s`
You should now be able to login with the default admin credentials:
* User: admin@example.com
* Password: password
You can run all tests and linters with `rake test`.
## Managing content
### Managing scores
1. Visit [checkyourreps.org/admin](https://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".