Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Politwoops web front end
branch: master
Failed to load latest commit information.
app branding bar tweak
config Added Bioguide and OCD identifiers to Politician
db Added Bioguide and OCD identifiers to Politician
lib Added Bioguide and OCD identifiers to Politician
public display: inline-block for links in .tweet-content
script Import of politicians and tweets models.
vendor/cache Added services for exporting tweet fixtures and requeueing a tweet.
.gitignore Updated .gitignore
.ruby-gemset
.ruby-version Updated system_timer and memcache-client. Changed encoding handling f…
Gemfile Added services for exporting tweet fixtures and requeueing a tweet.
Gemfile.lock
README.md update readme
Rakefile Rakefile update to make it work again.
config.ru Initial import of politwoops.
twoopsters.csv added twoopsters csv to repo
unicorn.rb.example

README.md

Setting up the app

These instructions assume that you are using RVM, rbenv, or something else that is compatible with .ruby-version.

  • gem install bundler
  • bundle install
  • Create config/database.yml (see config/database.yml.example)
  • Create config/config.yml (see config/config.yml.example)
  • rake db:create
  • rake db:schema:load
  • rake db:migrate

You can now run rails server and navigate to /admin/users/ to manually add politicians. Alternatively, you can load politicians in bulk from a CSV spreadsheet using the rake politicians:import_csv CSV=myfile.csv command. See twoopsters.csv as an example of the format to use. If you use the politicians:import_csv task you should then use the politicians:reset_avatars task as well. This will download the avatars currently in use by each politician.

Something went wrong with that request. Please try again.