A real-time user tracking application that displays the locations of connected users on a map using Socket.io and Leaflet.js. This application captures users' geolocation data from their browsers and visualizes it on a map.
- Real-time tracking of users' locations.
- Display users' locations on a map using Leaflet.js.
- Automatic updates of users' positions.
- Removal of disconnected users from the map.
- Clone the repository:
git clone https://github.com/coderooz/live-user-tracking-app.git
cd live-user-tracking-app
- Install dependencies:
npm install socket.io express ejs
- Run the application:
node app.js
- Open your browser:
Navigate to http://localhost:3000
to see the live user tracking in action.
project_folder
├── node_modules
├── public
│ ├── css
│ │ └── style.css
│ ├── js
│ │ └── script.js
├── views
│ └── index.ejs
├── app.js
└── package.json
- Adding a log/storage feature.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please follow the Code of Conduct and see the Contributing Guidelines for more details.