Skip to content

VISHRUT86/Location_Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📍 Live Location Tracker

A real-time Live Location Tracking Application built using Node.js, Express, Socket.IO, MongoDB, and EJS.
This project tracks and displays live user locations on a map using WebSockets for real-time communication.


🚀 Features

  • Real-time location tracking using Socket.IO
  • Live updates without page refresh
  • Map-based location visualization
  • Backend powered by Express and MongoDB
  • Simple and clean UI using EJS templates

🛠️ Tech Stack

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • Socket.IO
  • dotenv

Frontend

  • EJS (Embedded JavaScript Templates)
  • HTML
  • CSS
  • JavaScript

📂 Project Structure

image

▶️ How to Run the Project

1️⃣ Clone the Repository

git clone https://github.com/VISHRUT86/Location_Tracker.git

2️⃣ Go to Project Folder

cd Location_Tracker

3️⃣ Install Dependencies

npm install

4️⃣ Setup Environment Variables

Create a .env file in the root directory and add: MONGO_URI=your_mongodb_connection_string

5️⃣ Start the Server

npm start

6️⃣ Open in Browser

http://localhost:3000


🔄 Real-Time Functionality

  • Uses Socket.IO for bi-directional communication
  • Automatically updates user locations on the map
  • Supports multiple connected users simultaneously

🎯 Learning Outcomes

  • Understanding real-time communication with Socket.IO
  • Practical experience with Express and MongoDB
  • Working with WebSockets in Node.js
  • Template rendering using EJS
  • Handling live data updates efficiently

🔮 Future Improvements

  • Add user authentication
  • Improve UI with modern frontend framework
  • Store location history
  • Deploy on cloud (Render / Railway / AWS)
  • Add mobile support

🤝 Contributing

Contributions are welcome.
Feel free to fork this repository and submit pull requests.


👨‍💻 Author

Vishrut Bharti
GitHub: https://github.com/VISHRUT86

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors