bswinnerton / nyc-restaurant-grades

GraphQL & REST API for NYC restaurant health inspections

Home Page:http://nyc-restaurant-grades.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NYC Restaurant Grades via GraphQL

This application allows you to query the NYC Restaurant Inspection Results data (letter ratings for restaurants) via a GraphQL interface.

For example, to query all of the Wendy's in Brooklyn and get a list of their health violations, visit http://nyc-restaurant-grades.com/graphql and enter the following on the left hand side of GraphiQL:

query {
  restaurants(name: "Wendy's", borough: BROOKLYN) {
    name
    address
    cuisine
    inspections {
      grade
      violations {
        description
      }
    }
  }
}

Development

This application can be bootstrapped by doing the following:

bundle install
bundle exec rake db:create db:migrate db:seed

The db:seed will start the bulk import from the NYC open data website and is idempotent.

The data backing this application is not regularly updated

About

GraphQL & REST API for NYC restaurant health inspections

http://nyc-restaurant-grades.com


Languages

Language:Ruby 88.5%Language:HTML 8.2%Language:CSS 1.5%Language:JavaScript 1.0%Language:Dockerfile 0.8%