{"id":26198043,"url":"https://github.com/7rajnishsharma/livelocator","last_synced_at":"2026-05-28T08:31:22.620Z","repository":{"id":252632012,"uuid":"840991579","full_name":"7rajnishsharma/LiveLocator","owner":"7rajnishsharma","description":"This project is a real-time location tracking application built using Node.js, Socket.io, and Leaflet.js. It allows users to share their current location, which is then displayed on a map for all connected users. Each user is represented by a marker on the map that updates as they move.","archived":false,"fork":false,"pushed_at":"2024-08-11T10:41:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T15:23:46.973Z","etag":null,"topics":["leafletjs","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7rajnishsharma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T10:15:43.000Z","updated_at":"2025-01-09T09:40:32.000Z","dependencies_parsed_at":"2024-08-11T11:52:25.730Z","dependency_job_id":null,"html_url":"https://github.com/7rajnishsharma/LiveLocator","commit_stats":null,"previous_names":["7rajnishsharma/livelocator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7rajnishsharma/LiveLocator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rajnishsharma%2FLiveLocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rajnishsharma%2FLiveLocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rajnishsharma%2FLiveLocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rajnishsharma%2FLiveLocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7rajnishsharma","download_url":"https://codeload.github.com/7rajnishsharma/LiveLocator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7rajnishsharma%2FLiveLocator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leafletjs","nodejs","socket-io"],"created_at":"2025-03-12T02:49:47.987Z","updated_at":"2026-05-28T08:31:22.602Z","avatar_url":"https://github.com/7rajnishsharma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiveLocator\n\nThis project is a real-time location tracking application built using Node.js, Socket.io, and Leaflet.js. It allows users to share their current location, which is then displayed on a map for all connected users. Each user is represented by a marker on the map that updates as they move.\n\n## Features\n\n- Real-time location sharing across multiple clients\n- Dynamic map marker updates\n- User markers are removed when they disconnect\n- Responsive UI using Leaflet.js\n\n## Getting Started\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed on your machine:\n\n- [Node.js](https://nodejs.org/) (v14 or higher)\n- [npm](https://www.npmjs.com/) (comes with Node.js)\n\n### Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/7rajnishsharma/LiveLocator.git\n   ```\n\n2. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n### Running the Application\n\n1. **Start the server**:\n   ```bash\n   npm start\n   ```\n\n2. **Access the application**:\n\n   Open your browser and navigate to [http://localhost:5000](http://localhost:5000).\n\n3. **Test with multiple users**:\n\n   Open multiple tabs or different browsers and access the application to see real-time location tracking in action.\n\n## Project Structure\n\n```bash\n.\n├── public\n│   ├── css\n│   │   └── style.css\n│   ├── js\n│       └── script.js\n├── views\n│   └── index.ejs\n├── app.js\n└── package.json\n```\n\n- `public/`: Contains static assets like CSS, JS, and the HTML template.\n- `app.js`: Main server-side script to handle socket connections and events.\n- `package.json`: Contains project dependencies and scripts.\n\n## Technologies Used\n\n- **Node.js**: Backend server\n- **Express.js**: Web framework for Node.js\n- **Socket.io**: Real-time communication between clients and server\n- **Leaflet.js**: Library for interactive maps\n\n## How It Works\n\n1. **Server-Side (app.js)**:\n   - When a user connects, their location is tracked and broadcast to all other connected users.\n   - User locations are stored on the server to ensure all connected users see the correct markers on the map.\n   - When a user disconnects, their marker is removed from the map.\n\n2. **Client-Side (script.js)**:\n   - The user's location is obtained using the browser's Geolocation API.\n   - Location data is sent to the server via Socket.io.\n   - The map is updated with markers representing the locations of all connected users.\n\n## Contributions\n\nContributions are welcome! Feel free to submit issues, fork the repository, and create pull requests.\n\n\n## Acknowledgments\n\n- [Leaflet.js](https://leafletjs.com/) for the interactive map library\n- [Socket.io](https://socket.io/) for real-time communication\n\n\n## Here's a quick preview of what the application looks like:\n\n![LiveLocator](https://github.com/user-attachments/assets/347e68f4-35ed-475c-bd74-a64180158e68)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7rajnishsharma%2Flivelocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7rajnishsharma%2Flivelocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7rajnishsharma%2Flivelocator/lists"}