A location-sharing application that allows users to create and join rooms where they can share their live locations.
The application is built to demonstrate the following:
- The Browser Geolocation API to retrieve the user device's current location
- leaflet.js on the client-side to display maps and markers
- The WebSockets protocol, the browser WebSockets API and the node.js WebSockets library for real-time communication
- Rooms where users can share their location information
- Creating / Joining rooms
- Shareable room passphrases
- Live updates of user locations
A Heroku account and the Heroku CLI is needed to deploy this application to Heroku. Docker is also required.
Log in to container registry
$ heroku container:login
If you want to create a new Heroku app to deploy to, navigate to the app’s directory and create a Heroku app:
$ heroku create
Alternatively, if there is already a Heroku app you want to add this to, add the remote to the repository:
$ heroku git:remote -a your-app-name
Build the image and push to Container Registry:
$ heroku container:push web
Then release the image to your app:
$ heroku container:release web