Skip to content

MNSBaanu/TransitLK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

744 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransitLK

Academic Project - ASE

Smart Route Management and Scheduling System (SRMSS) for Sri Lankan public transport depots, route planning, timetables, fleet and driver management, maintenance, fuel logging, and role-based schedule approvals.

Stack License

Repository: https://github.com/MNSBaanu/TransitLK

Features

  • Routes — create and manage routes with map integration (Google Maps)
  • Schedules — daily timetables, conflict detection, depot approval workflow
  • Fleet — buses and drivers, CSV bulk import
  • Maintenance & fuel — service logs and consumption tracking
  • Reports — analytics and PDF export
  • Role-based access — superadministrator through driver portals

Prerequisites

Quick start

git clone https://github.com/MNSBaanu/TransitLK.git
cd TransitLK

cd server && npm install
cd ../client && npm install

Environment

Copy the example files to .env in each folder and set your own values:

  • server/.env.exampleserver/.env
  • client/.env.exampleclient/.env
File Variables
server/.env PORT, MONGO_URI, JWT_SECRET; optional CLIENT_URL, NODE_ENV
client/.env VITE_GOOGLE_MAPS_API_KEY

See server/.env.example and client/.env.example for descriptions.

Run locally

# Terminal 1 — API (default http://localhost:5000)
cd server && npm run dev

# Terminal 2 — client (default http://localhost:5173)
cd client && npm run dev

The Vite dev server proxies /api to the backend. Verify the API with GET http://localhost:5000/api/health.

Database

The application expects a populated MongoDB database with depot users and reference data. Provision your own database for local development. The UI supports CSV import (sample templates via the API) for vehicles, drivers, routes, users, and maintenance records once an authorised account exists.

Roles

Role Main modules
Superadministrator Admins, Depots, Analytics
Administrator Dashboard, Routes, Schedules, Fleet, Users, Maintenance, Analytics
Transport Scheduler Routes, Schedules, Analytics
Fleet Manager Fleet & Drivers, Maintenance
Depot Manager Dashboard, Schedules (approve / reject / adjust), Analytics
Driver My trips

Project layout

client/          React (Vite) frontend
server/          Express API, Mongoose models, services
render.yaml      Optional Render.com deployment for the API

License & use

Copyright © 2026 Baanu and Irfa. All rights reserved.

This is an academic project. You may view and run the code for coursework assessment or academic review only. Commercial use, redistribution, modification for publication, and sublicensing are not permitted without written permission from the authors.

Full terms: LICENSE.

About

Smart Route Management and Scheduling System (SRMSS) for Sri Lankan public transport depots, route planning, timetables, fleet and driver management, maintenance, fuel logging, and role-based schedule approvals.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors