WebNest
Team/MD MEHERAJUL KARIM/BTRC

Repository

BTRC

View on GitHub ↗
TypeScript★ 0 stars⑂ 0 forks

README

Nirapad Transit

AI-Enabled National Smart Public Transport Management and Safety System Using GPS and Real-Time Monitoring for Bangladesh

Final Year Design Project (FYDP) — research + software implementation.

This repository is a working multi-role platform (APIs, RBAC, PostgreSQL, live map, WebSocket, GPS simulator, dashboards, Flutter clients, ML experiment). It is not connected to a live government system or a physical GPS modem unless you change configuration and provide those integrations yourself.

DEMO / SIMULATION ENVIRONMENT. Seeded buses, drivers, companies and routes are demo data. They are not BRTA or police records.

Features (implemented)

  • JWT authentication and seven-role RBAC
  • Admin, government, BRTA, police, owner, driver, passenger web apps
  • Bus / driver / company / route / GPS device management
  • GPS ingest + simulator along Bangladesh city demo corridors
  • OpenStreetMap + Leaflet live map (green / yellow / red)
  • Overspeed and route-deviation alerts
  • SOS and complaint workflows
  • In-app notifications (architecture allows future SMS / email / push)
  • Analytics cards and 7-day series
  • CSV / Excel / PDF reports
  • Audit logs and system settings
  • Docker Compose
  • Flutter passenger + driver app source
  • Experimental ETA ML module on synthetic data

Technology

LayerChoice
WebNext.js 14, TypeScript, Tailwind CSS
APINode.js, Express, Prisma, Socket.IO
DatabasePostgreSQL 16
MapsOpenStreetMap + Leaflet
MobileFlutter
MLPython, scikit-learn, XGBoost
OpsDocker Compose

Quick start

Prerequisites: Node.js 20+, PostgreSQL 16 (or Docker).

copy .env.example .env
# set JWT_SECRET, JWT_REFRESH_SECRET, DATABASE_URL

npm install
cd backend
npx prisma generate
npx prisma db push
npx tsx prisma/seed.ts
cd ..
npm run dev:backend
npm run dev:frontend
npm run dev:simulator

Web: http://localhost:3000
API: http://localhost:4000/health

Demo accounts

Password for all seeded users: Demo@12345

RoleEmail
Super Adminadmin@nirapad.gov.bd
Governmentgovernment@nirapad.gov.bd
BRTAbrta@nirapad.gov.bd
Policepolice@nirapad.gov.bd
Ownerowner.greenline@demo.bd
Driverdriver.rahim@demo.bd
Passengerpassenger.fatima@demo.bd

Project layout

backend/          Express API
frontend/         Next.js dashboards
mobile/           Flutter passenger + driver
gps-simulator/    Development GPS feeder
ml/               FYDP ETA experiment
docs/             Architecture and API notes
database/         Schema notes
docker-compose.yml

Documentation

Academic labels

FeatureClassification
Auth, RBAC, CRUD, GPS ingest, maps, SOS, complaints, reportsImplemented
Simulator, heuristic ETA, rule-based driving alertsPrototype
sklearn / XGBoost ETA comparisonExperimental (synthetic)
Accident ML, traffic forecast, government API, physical GPSFuture work

Do not fabricate accuracy, dataset size, or live national deployment claims.

License

Academic / FYDP use. Replace secrets before any public hosting.

← Back to profile