This app uses the Ably Asset Tracking for JavaScript SDK to subscribe to updates from a publisher, such as the Android Publishing Example App.
It is offered as a simpler (and less feature-rich) alternative to the example app bundled within the Ably Asset Tracking JavaScript SDK repo, because it uses the open-source Leaflet.js web mapping library instead of the Google Maps API or Mapbox, and hence does not require an API key to use.
To run it:
- Clone this repository
- Change into the project directory and run
npm install
to install the required dependencies. - Run the Android publishing example app and make a note of the tracking ID.
- Copy
sample.env
to.env
and configure your Ably API key and the tracking ID from the preceding step. - Open your browser at http://localhost:5000 and watch the asset being tracked in realtime.