A real-time device tracking application built with Node.js, Express, Socket.IO, and Leaflet. This application allows users to track their devices' locations on a map in real-time using geolocation.
- Real-time location tracking using WebSocket.
- Interactive map interface using Leaflet.
- Custom markers for user locations.
- Dynamic tooltips displaying user IDs.
- Responsive design with smooth user experience.
- Node.js: JavaScript runtime for building the server.
- Express: Web framework for Node.js.
- Socket.IO: Enables real-time bidirectional communication between clients and server.
- Leaflet: Open-source JavaScript library for interactive maps.
- HTML/CSS: For the frontend structure and styling.
- Node.js installed on your machine.
- npm (Node package manager).
To run the application with automatic reloading, use nodemon
:
- Make sure you have
nodemon
installed globally:npm install -g nodemon Start the application: npx nodemon app.js