TRACK MY BUS
Smart Public Transport & Fleet Tracking Ecosystem
Engineered the Next.js frontend with live Google Maps tracking, developed the Laravel REST API backend, and configured Redis in-memory caching to stream bus locations smoothly.
Allows passengers to track approaching buses in real time, view available seating before boarding, and purchase digital QR tickets without waiting in cash queues.
ROLE
Full-Stack Developer & UI/UX Designer
CATEGORY
Full-Stack Web App
YEAR
2025
TECH STACK
Next.js · TypeScript · Laravel · MySQL

Project Overview
Track My Bus solves a major everyday problem for daily commuters: unpredictable bus arrivals and slow manual cash ticketing. By combining real-time GPS tracking on Google Maps with an interactive seat reservation system and instant QR ticket generation, the application gives passengers certainty and reduces boarding congestion.
The Problem
Commuters frequently wait at bus stops with no visibility into when the next bus will arrive or whether it has empty seats. At the same time, manual cash collections slow down boarding times at every stop.
Who It's For
Daily urban commuters, private bus operators, route dispatchers, and bus conductors with QR verification devices.
Project Goals
- Show live bus locations on interactive Google Maps with smooth marker movement.
- Provide an interactive seat selection layout with instant locking to prevent double-booking.
- Generate digital QR tickets that can be scanned for verification in under two seconds.
Spoke with local public transit commuters in Sri Lanka who consistently reported that knowing the exact bus location and seat availability would significantly reduce their daily travel stress.
Search Route → View Buses on Live GPS Map → Select Bus & Pick Seat → Confirm Payment → Receive Instant QR Ticket → Show Ticket on Boarding.
Architecture & Challenges
The Next.js client renders responsive map layers and seat grids. It communicates with a Laravel backend API, which uses Redis for high-frequency GPS coordinate caching and MySQL for transactional ticket records.
Challenge & Solution
Challenge: Updating bus GPS coordinates continuously for dozens of active vehicles without making the user's map lag or overloading the backend database.
Solution: Used Redis in-memory storage to cache incoming GPS coordinates and throttled client map updates to smooth 3-second batches with interpolated movement.
Result & Outcome
Built a fully functional real-time transit booking web application with verified frontend and backend GitHub repositories.