Skip to content

codeunion/can-i-eat-here

Repository files navigation

Can I Eat Here?

Can I Eat Here is a web app for finding restaurants that provide food you can consume; in spite of your restrictions.

Learning Goals

Using This Repo

This repo is to serve as a reference for how to iteratively build web applications in Sinatra.

I would recommend reading this repository commit by commit in github. Add comments asking questions on lines of code.

Functional Requirements

DONE!

  1. A User may search for Restaurants by SupportedRestriction
  2. A User may tag a Restaurant With a SupportedRestriction
  3. A User may create a Restriction
  4. A guest may register as a User
  5. A User may create a Restaurant
  6. A User may search for Restaurants by Location

Running The Software

  1. Clone the repo
  2. bundle install --without production
  3. cp .env.example .env
  4. rerun -c rackup
  5. Open it in your browser!

Deploying The Software

  1. Install the Heroku Toolbelt
  2. heroku create
  3. heroku config:set SESSION_SECRET=$(ruby -r 'securerandom' -e 'puts SecureRandom.hex(256)') - This sets a long, random string for the apps session secret.
  4. heroku config:set GOOGLE_GEOCODER_API_KEY="whatever_your_key_is"
  5. git push heroku
  6. heroku open

Obtain a Google Maps API Key

Google restricts your requests to 2500 requests per day; so be considerate if you're using the key in .env.example. To get your own key:

About

Decently complex, yelp(ish) clone - Web Fundamentals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published