https://github.com/mdb/times_grapher
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.
https://github.com/mdb/times_grapher
Last synced: 25 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mdb/times_grapher
- Owner: mdb
- Created: 2012-04-02T21:15:58.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T23:59:42.000Z (almost 12 years ago)
- Last Synced: 2025-04-17T16:55:32.222Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 585 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/mdb/times_grapher)
# TimesGrapher
Compare the the New York Times coverage of any two topics in any year between 1981 and 2013.
TimesGrapher is built on [Rails](http://rubyonrails.org/) and [Backbone.js](http://backbonejs.org/). It uses the New York Times' [articles search API](http://developer.nytimes.com/docs/read/article_search_api_v2).
[View TimesGrapher »](http://timesgrapher.herokuapp.com)
## 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](https://www.heroku.com/) deployment.
Assuming you have a Heroku account and the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-command):
```
cd times_grapher
heroku create
heroku config:set NY_TIMES_API_KEY=
git push heroku master
```