Sign inSign up

bswinnerton/nyc-restaurant-grades

By bswinnerton

•Updated about 8 years ago

An API to fetch the NYC Restaurant Grades.

Image
0

50K+

bswinnerton/nyc-restaurant-grades repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

438.5 MB

Last updated

about 8 years ago

docker pull bswinnerton/nyc-restaurant-grades