Skip to content

A simple Ruby on Rails application that compares the New York Times' coverage of any two user-provided topics for a given year. The application uses the New York Times articles API.

mdb/times_grapher

Repository files navigation

Build Status

TimesGrapher

Compare the the New York Times coverage of any two topics in any year between 1981 and 2013.

TimesGrapher is built on Rails and Backbone.js. It uses the New York Times' articles search API.

View TimesGrapher »

Development

You must have a valid articles search New York Times API key. Set this as your $NY_TIMES_API_KEY environment variable.

git clone https://github.com/mdb/times_grapher.git
cd times_grapher
bundle install
rails server

Running tests

TimesGrapher uses Rspec to test Ruby & Jasmine to test its JavaScript.

To run the tests:

bundle exec rake

Deployment

TimesGrapher is set up for easy Heroku deployment.

Assuming you have a Heroku account and the Heroku CLI:

cd times_grapher
heroku create
heroku config:set NY_TIMES_API_KEY=<your NY_TIMES_API_KEY here>
git push heroku master

About

A simple Ruby on Rails application that compares the New York Times' coverage of any two user-provided topics for a given year. The application uses the New York Times articles API.

Resources

Stars

Watchers

Forks

Packages

No packages published