A real-time location tracking web app where multiple users can share and see live locations on an interactive map. Built with Node.js, Express, Socket.io, and Leaflet.js, fully responsive for desktop and mobile.
🌐 Real-time location sharing for multiple users
🗺 Interactive map with Leaflet.js & OpenStreetMap
📍 Dynamic markers for each user
🔄 Automatic marker updates as users move
❌ Marker removal when user disconnects
📱 Responsive design for all devices
🚀 Easy deployment on free platforms (Replit, Render, Vercel, Fly.io)
Frontend: HTML, CSS, JavaScript, Leaflet.js
API: OpenStreetMap
Backend: Node.js, Express, EJS, Socket.io
- Clone the repo
git clone https://github.com/fattahniz/realtime_tracker.git
cd realtime_tracker
npm i
npm startproject/
│
├─ backend/
│ ├─ src/
│ │ ├─ controllers/ # Future controllers for handling logic
│ │ ├─ routes/ # Future route files
│ │ ├─ sockets/ # Socket logic
│ │ └─ server.js
│ ├─ view/
│ │ └─ index.ejs
│ ├─ package.json
│ └─ package-lock.json
│
├─ frontend/
│ ├─ css/
│ │ └─ style.css
│ ├─ js/
│ │ └─ index.js
│ └─ index.html
│
├─ docs/
│ └─ steps.yaml
│
└─ README.mdFork the repository
- Create a new branch (feature/my-feature)
- Commit changes
- Push branch and create a Pull Request
This project is licensed under the MIT License – see the LICENSE file for details.