This project is a real-time device tracker that uses geolocation to track the user's location and display it on a map. The application uses Node.js, Express, Socket.io, and Leaflet.js to achieve this functionality.
- 📍 Real-time location tracking
- 🎯 High accuracy geolocation
- 🗺️ Dynamic map updates
- 🔌 User disconnection handling
- 🟢 Node.js
- 🚀 Express
- 📡 Socket.io
- 🗺️ Leaflet.js
- 📝 EJS (Embedded JavaScript templates)
- Clone the repository:
git clone https://github.com/yourusername/Realtime-Device-Tracker.git
- Navigate to the project directory:
cd Realtime-Device-Tracker
- Install the dependencies:
npm install
- Start the server:
npx nodemon .\app.js
- Open your browser and navigate to
http://localhost:3002
(or the port you have configured).
app.js
: Main server file.views/index.ejs
: HTML template for the application.public/js/script.js
: Client-side JavaScript for geolocation and socket communication.public/css/style.css
: Styles for the application.steps.yaml
: Rough steps and procedures for the project. This file was used for reference while creating the project, so don't try to make a lot of sense out of it.
This project is licensed under the MIT License. See the LICENSE file for more information.