Gyros near you!
Uses browser's navigation.geolocation.getCurrentPosition()
to query Yelp's Fusion API using yelp-fusion.
- Get API ID and secret from Yelp
- Set those values in your environment See https://www.yelp.com/developers/v3/manage_app
export YELP_API_KEY=<your_yelp_API_ID>
npm install
npm start
To ensure you're not using an out-of-date image
docker compose build
docker compose up -d
Then browse to http://localhost:8080/
If you want to view logs, omit -d
from the previous command or
docker compose logs -f
Make sure karma-chrome-launcher is installed. This may cause problems with CI.
npm install karma-chrome-launcher --save-dev --link
Run tests
npm test
will run mocha for the server-side JavaScript and karma for the client-side tests
Export the Yelp token you received (see above)
export YELP_API_KEY=<see_get_token_section>
then execute the request
curl -H "Authorization: Bearer $YELP_API_KEY" https://api.yelp.com/v3/businesses/search?location=48226&term=gyro
https://support.google.com/chrome/answer/114662?co=GENIE.Platform%3DDesktop&hl=en