A client-side React application, utilizing the Yelp API to search for local businesses.
Signup for an API Key here
Locate the src/util/Yelp.js
and add your clientId and secret variables.
Parameter | Type | Description |
---|---|---|
clientId |
string |
Required. Your client |
secret |
string |
Required Your API key |
Inside your root directory, using npm, install
npm i whatwg-fetch polyfill
In your own browser, visit cors-anywhere.herokuapp.com/corsdemo and click “Request temporary access to the demo server”
Below is a list of some potential features to add to Ravenous:
- Make addresses clickable and have them open the address in Google Maps in a new tab
- Make images clickable and have them open the business' website in a new tab
- Clicking on a different sorting option automatically requeries the Yelp API, rather than having to manually click "Let's Go" again
- Implement your own type of sort (for example, by entering a distance or radius from a central location)
- Allow you to search by pressing "Enter" (or "Return") on your keyboard, as opposed to manually clicking
- Add autocompletion of addresses to the "Location" input
- This project is based off Codecademy's tutorial on React with AJAX Requests & API Interactions.