All Projects → everypolitician → gender-balance

everypolitician / gender-balance

Licence: other
Crowdsourcing platform for gathering gender information about politicians to improve the data in EveryPolitician

Programming Languages

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

Gender Balance

Build Status

Crowdsourcing platform for gathering gender information about politicians to improve the data in EveryPolitician.

Installation

Get the code from GitHub

git clone https://github.com/everypolitician/gender-balance
cd gender-balance

Configure the environment by copying .env.example and following the instructions inside to configure the app.

cp .env.example .env
vi .env

Then use vagrant to build a VM with all the dependencies installed:

vagrant up

Usage

Log in to the vagrant VM and start the app server and worker with foreman:

vagrant ssh
foreman start

Then visit http://localhost:5000 to view the app.

To run the tests use the following:

vagrant ssh
bundle exec rake test

Setting the featured country

First start a pry session, if you're in a vagrant VM then run

pry -r ./app

Or if you want to run pry on Heroku

heroku run 'pry -r ./app'

Then you can set the featured country using the country code, which can be found in countries.json. For example to set it to Turkey:

FeaturedCountry.current = 'TR'

This will end any previous featured country and create a new row for the given country code.

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].