ruby, rails, activerecord, geocoder, google maps API
NYC non-"A" restaurant finder
This webapp uses NYC open data to construct a database, finding data on all non-"A" restaurants. It presents the data many different ways, including by zip code, by individual restaurant, by cuisine, or by violation. Rails is used as the framework and ActiveRecord as the ORM.
We are always shocked to hear when some of our favorite spots to eat fail to make the grade on health inspections. Was the failure a fluke? Why did they fail? Avoid makes the answers to these questions easy to access and understand.
We hope Avoid helps New Yorkers keep track of health code violations in restaurants across NYC and, well, avoid them.
Restaurants are searchable by the following:
- violation type
Users can track the following on a personal watchlist:
Right we are manually inputting new data as it becomes available. In the future we hope to automate this system to insure our search results provide the latest information.
Chris Guthrie www.caguthrie.com
Arielle Sullivan https://www.medium.com/@sullivanarielle
To run in development mode:
Install postgres if you have not already done so:
brew install postgresql
Initialize a postgres database:
initdb -D /usr/local/pgsql/data
Then start up a postgres server:
postgres -D /usr/local/pgsql/data
In a different console window, migrate the database from the restaurantrails directory:
Finally, push the database dump into the database from the restaurantrails directory:
psql restaurants_development < dump.db
Then run the rails server from the restaurantrails directory:
And go to
localhost:3000 in your browser
Avoid is licensed under MIT. That means that you are generally free to use the app as you choose but we assume no liability relating to the application. Please see the LICENSE file for complete details.