This project was bootstrapped with Create React App.
It uses the Yelp Fusion API
It uses cors-anywhere to proxy requests for local development Cors-Anywhere
A simple SPA for interacting with the Yelp API focused on restaurants.
When running locally, corsAnywhere is used to proxy requests. This limits requests and you may encounter occasional errors as a result.
Set your Yelp API key as an environment variable on your local machine. Create a file in your root project directory called .env. In that file type (n.b. no spaces):
REACT_APP_YELP_API_KEY=your-api-key-goes-here
Never share your API key in public such as in a git repository.
In your terminal
yarn
yarn start
You can view the app by navigating to http://localhost:3000/ in your browser.
Ensure that you have set up your API key as an environment variable for your site on Netlify. The configuration file netlify.toml will handle proxy redirects for the Yelp API.