<commit_before># Open Government: Application

[![Build Status](https://secure.travis-ci.org/opengovernment/opengovernment-app.png)](http://travis-ci.org/opengovernment/opengovernment-app)
[![Dependency Status](https://gemnasium.com/opengovernment/opengovernment-app.png)](https://gemnasium.com/opengovernment/opengovernment-app)
[![Coverage Status](https://coveralls.io/repos/opengovernment/opengovernment-app/badge.png?branch=master)](https://coveralls.io/r/opengovernment/opengovernment-app)
[![Code Climate](https://codeclimate.com/github/opengovernment/opengovernment-app.png)](https://codeclimate.com/github/opengovernment/opengovernment-app)
<a href="https://kiwiirc.com/client/irc.freenode.net/?nick=web_guest%7C?#opengovernment"><img src="https://kiwiirc.com/buttons/irc.freenode.net/opengovernment.png" alt="#opengovernment IRC channel" height="18" width="130" style="max-width:100%;"></a>

## Getting Started

We require these to be installed:

* imagemagick
* nodejs
* mongodb # should also be running
* redis # should also be running

Depending on your OS , you may also need to install these:

* libxml2-dev
* libxslt-dev
* libmagickwand-dev

In the application's directory, set up Ruby 1.9.3 and required gems:

    rvm 1.9.3 # i.e. switch to ruby 1.9.3, your steps may vary
    bundle

Start the server:

    rails server

### Setting Up API Keys

You will need a [Sunlight Foundation API key](http://services.sunlightlabs.com/accounts/register/) and a [Project Vote Smart API key](http://votesmart.org/share/api). In development, you should copy and edit `_heroku.rb`:<commit_msg>added phantomjs requirement to readme for request tests<commit_after># Open Government: Application

[![Build Status](https://secure.travis-ci.org/opengovernment/opengovernment-app.png)](http://travis-ci.org/opengovernment/opengovernment-app)
[![Dependency Status](https://gemnasium.com/opengovernment/opengovernment-app.png)](https://gemnasium.com/opengovernment/opengovernment-app)
[![Coverage Status](https://coveralls.io/repos/opengovernment/opengovernment-app/badge.png?branch=master)](https://coveralls.io/r/opengovernment/opengovernment-app)
[![Code Climate](https://codeclimate.com/github/opengovernment/opengovernment-app.png)](https://codeclimate.com/github/opengovernment/opengovernment-app)
<a href="https://kiwiirc.com/client/irc.freenode.net/?nick=web_guest%7C?#opengovernment"><img src="https://kiwiirc.com/buttons/irc.freenode.net/opengovernment.png" alt="#opengovernment IRC channel" height="18" width="130" style="max-width:100%;"></a>

## Getting Started

We require these to be installed:

* imagemagick
* nodejs
* mongodb # should also be running
* redis # should also be running
* phantomjs # for running the request spec

Depending on your OS , you may also need to install these:

* libxml2-dev
* libxslt-dev
* libmagickwand-dev

In the application's directory, set up Ruby 1.9.3 and required gems:

    rvm 1.9.3 # i.e. switch to ruby 1.9.3, your steps may vary
    bundle

Start the server:

    rails server

### Setting Up API Keys

You will need a [Sunlight Foundation API key](http://services.sunlightlabs.com/accounts/register/) and a [Project Vote Smart API key](http://votesmart.org/share/api). In development, you should copy and edit `_heroku.rb`:
{'fraction_non_alphanumeric': 0.13906678865507777, 'fraction_numerical': 0.011588899054589813, 'mean_word_length': 5.3565891472868215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4679825', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1059, 'n_words': 232}