A real-time location tracking app using Node.js, Express, Socket.io, and Leaflet.js to track and update user locations on a map.
- Live Location Tracking via
navigator.geolocation.watchPosition(). - Real-time Updates using Socket.io.
- Interactive Map with Leaflet.js and OpenStreetMap.
- Auto Removal of disconnected users' markers.
- Clone the repo:
git clone https://github.com/Jitendra2407/RealTimeTracker.git cd RealTimeTracker - Install dependencies:
npm install
- Start the server:
nodemon app.js
- Open http://localhost:8080 in your browser.
-
Browser requests location access.
-
Sends coordinates to the server via Socket.io.
-
Server broadcasts location to all users.
-
Map updates with user positions.
-
Markers are removed on user disconnect.
Jitendra Kumar Thakur