Ruby 2.7.2
Rails 5.2.6
- Fork and clone this repo
bundle install
bundle exec figaro install
rails db:create
rails s
When you navigate to localhost:3000, you should see a form to fill out a city and a craving. When you hit the submit button, you should see an error saying that the SearchController does not exist -- this is where y'all will start!
You will be searching for the nearest restaurants in that particular city, that offer the food that you’re craving.
- The MapQuest Directions API:
- endpoint: http://www.mapquestapi.com/directions/v2/route (see docs on this endpoint here https://developer.mapquest.com/documentation/directions-api/route/get/ )
- Sign up for a key here: https://developer.mapquest.com/
- Yelp Fusion API
- endpoint: https://www.yelp.com/developers/documentation/v3/business_search
- sign up for a key here - https://www.yelp.com/developers/documentation/v3/get_started
As a visitor
When I visit “/“
And fill in the existing form with a city (ex: “Denver, CO”) and my food craving (ex: thai, american, bar, chinese, etc.) and hit submit,
I’m taken to a page where I can see a list of the 15 closest restuarants for that craving in that city.
And each restaurant lists their name, phone number, rating, human readable address, and the distance it is from that city.
And the restaurants are listed in order of proximity (closest to furthest)