Where Is My Bus is a full-stack web application designed to help users search, track, and book buses in real time. The platform provides live bus location tracking on maps, route-based search, ticket booking with online payment, and nearby place discovery to improve the daily commuting experience.
This project is built with a modern tech stack and follows open-source best practices, making it beginner-friendly and scalable.
- 🔍 Search buses by Route (From & To), Bus Name, or Bus ID
- 📍 Real-time bus tracking on an interactive map
- 🗺️ View nearby buses and important places (Hospitals, Schools, Clinics)
- 🎫 Bus ticket booking & cancellation
- 💳 Secure online payments using Razorpay
- 🌐 Multi-language support
- 👤 User authentication & profile management
- 🧾 View booking history and tickets
⚠️ Proper error handling and validations
- Daily commuters
- Travelers using public transportation
- Users who need real-time bus location updates
- Transport management systems
- React (Vite)
- JavaScript
- Google Maps API
- HTML, CSS
- Node.js
- Express.js
- MongoDB
- Redis
- JWT Authentication
- Auth0
- Razorpay
- OpenAI API (optional features)
GPS_Tracker/
├── backend/
│ ├── src/
│ ├── .env
│ ├── package.json
│ └── server.js
│
├── frontend/
│ ├── src/
│ ├── .env
│ ├── package.json
│ └── vite.config.js
│
└── README.mdgit clone https://github.com/ayanmanna123/GPS_Tracker.gitcd GPS_Tracker🔧 Backend Setup
cd Backendnpm installCreate .env file in backend/
MONGO_URI=""
PORT=""
jwt_Secret=""
AUTH0_AUDIENCE=""
AUTH0_DOMAIN=""
NODE_ENV=development
RAZORPAY_SECRET=""
GOOGLE_API_KEY=""
OPENAI_API_KEY=""
REDIS_URI=""Start Backend Server
npm run devBackend will run on:
http://localhost:5000🎨 Frontend Setup
cd Frontendnpm installCreate .env file in frontend/
VITE_BASE_URL=http://localhost:5000/api/v1Start Frontend
npm run devFrontend will run on:
http://localhost:5173Steps to run both Frontend and Backend:
cd .\Frontend\
npm run both🧪 Usage
Register / Login to the platform
Search buses using route, name, or bus ID
Track live bus location on the map
Book tickets and make payments
View and manage booked tickets
Explore nearby important places
🤝 Contribution Guidelines
Fork the repository
Create a new branch for your feature or fix
Commit with clear messages
Open a Pull Request with proper description
Beginner-friendly issues are labeled for new contributors.
📌 Future Enhancements
Push notifications for bus arrival
Mobile app integration
AI-based route prediction
Admin dashboard for bus operators
📜 License
This project is licensed under the MIT License.
⭐ Support
If you like this project, please consider giving it a ⭐ on GitHub It helps the project grow and motivates contributors!
Made with ❤️ by Ayan Manna