No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
coverage/assets/0.8.0
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
dump.db
new.zip

README.md

tags language
ruby, rails, activerecord, geocoder, google maps API
ruby, HTML, Javascript, CSS

Code Climate

Avoid

Description

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.

Background

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.

Screenshots

Index Page Zipcode Page Restaurant Page

Features

Restaurants are searchable by the following:

  • name
  • zipcode
  • cuisine
  • violation type

Users can track the following on a personal watchlist:

  • restaurants
  • zipcodes
  • violations

Future

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.

Authors

Chris Guthrie www.caguthrie.com

Arielle Sullivan https://www.medium.com/@sullivanarielle

Usage

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:

rake db:migrate

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:

rails s

And go to localhost:3000 in your browser

License

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.