Gyros near you!
For other foods, add a term parameter e.g., https://ineedagyro.com/?term=cheese%20steak
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 startTo ensure you're not using an out-of-date image
docker compose builddocker compose up -dThen browse to http://localhost:8080/.
If you want to view logs, omit -d from the previous command or
docker compose logs -fMake sure karma-chrome-launcher is installed. This may cause problems with CI.
npm install karma-chrome-launcher --save-dev --linknpm testwill run mocha for the server-side JavaScript and karma for the client-side tests.
To generate tests with human-readable test result report run
npm run test_reportand open mochawesome-report/mochawesome.html.
To generate tests with human-readable test coverage result report run
npm run test_coverage_htmland open coverage/index.html.
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=gyrohttps://support.google.com/chrome/answer/114662?co=GENIE.Platform%3DDesktop&hl=en