This sample shows how to use a ViaMichelin REST API with the ScaleDynamics WarpJS SDK. This API is for tailor-made journey calculations, with unique Michelin content services. In this sample we will use this API to indicate the best restaurants at 10 km of the current location.
For more info about the API, refer to https://api.viamichelin.com/
- Clone the project
- Go to the
warp-samples/viamichelindirectory - Run the following commands:
# install deps
$ npm install
# login to ScaleDynamics
$ npx warp login- Open a free account on https://api.viamichelin.com, and get your API key
- Open the
server/index.jsfile - Update the
YOUR_API_KEYvalue with yours
# run a dev server
$ npm run dev
# build and deploy to production
$ npm run build
$ npm run deploy