All Projects → propublica → politwoops_sunlight

propublica / politwoops_sunlight

Licence: other
Politwoops web front end

Programming Languages

CSS
56736 projects
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

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.

To restart workers:

sudo initctl start beanstalkd sudo initctl restart pt-tweets-client

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].