Skip to content

JonoMacC/umami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umami

Netlify Status

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.

Local Development

When running locally, corsAnywhere is used to proxy requests. This limits requests and you may encounter occasional errors as a result.

Yelp API Key Setup

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.

Running

In your terminal

yarn
yarn start

You can view the app by navigating to http://localhost:3000/ in your browser.

Deploying on Netlify

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.