This project is a web application designed for real-time location tracking and monitoring. It utilizes WebSocket technology to provide real-time updates, displaying the location of tracked entities on a map. All connected users can view everyone's location on the map in real-time.
- Real-time location updates using WebSocket technology
- Display locations on an interactive map using OpenStreetMap and Leaflet.js
- Supports multiple connected users viewing locations simultaneously
- JavaScript
- Node.js
- Express.js
- Socket.IO
- OpenStreetMap
- Leaflet.js
- Clone the repository:
git clone https://github.com/faisal-shohag/realtime_location_tracking.git
- Navigate to the project directory:
cd realtime_location_tracking
- Install the dependencies:
npm install
- Start the server:
node server.js
- Open your web browser and go to
http://localhost:3000
to view the application.
server.js
- Main server file that sets up the Express server and WebSocket.public/
- Directory containing the client-side code.index.html
- Main HTML file.style.css
- CSS file for styling.app.js
- JavaScript file that handles the client-side WebSocket and map functionality.
You can view a live demo of the project here. (Please note that it may take a few seconds for the server to wake up.)
Contributions are welcome! Please feel free to submit a pull request or open an issue to discuss improvements or bugs.
This project is licensed under the MIT License. See the LICENSE file for details.
- Author: Faisal Shohag
- Email: faisalshohagprog@gmail.com
- LinkedIn: faisal-shohag
- GitHub: faisal-shohag