Location Tracker App is a real-time web application to request, broadcast, and track active location streams using WebSockets, Node.js, and MongoDB. The application manages active tracking sessions and seamlessly visualizes real-world mapping points in real time.
- Real-Time Websockets: Ultra-fast, bidirectional event-based communication utilizing
ws. - Location Storage: All location requests are securely persisted and actively managed via MongoDB.
- REST APIs: Full integration with backend routing controllers to handle user acceptances and map generations.
- Frontend Scripting: Vanilla JS interfacing closely with Socket APIs.
- Backend Setup: Node.js, Express.js
- Database Architecture: MongoDB cluster & Mongoose.
- Node.js (v18+)
- Local or Cloud MongoDB Instance (e.g., MongoDB Atlas)
-
Clone the repository:
git clone https://github.com/2k33cse992574/location-tracker.git cd location-tracker -
Install dependencies:
npm install
-
Setup environment variables: Copy carefully crafted
.env.exampleto your own.envconfiguration file to prevent secrets from leaking into Git.cp .env.example .env
Edit
.envto insert your MongoDB connection URI and running Port. -
Launch the application:
npm start
This project is open-source.