Skip to content

sakshibhatia17/Transit-Ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

64 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš TransitOps โ€“ Smart Fleet & Transit Operations Platform

A full-stack fleet management platform built during a hackathon to streamline vehicle operations, driver management, fleet monitoring, and operational analytics through a modern web dashboard.

React TypeScript Node.js Express Prisma PostgreSQL Render Vercel


๐Ÿ“– Overview

TransitOps is a centralized fleet management solution that helps transport operators manage vehicles, drivers, trips, maintenance activities, operational analytics, and secure access control from a single dashboard.

The project was developed as a hackathon prototype with a scalable backend architecture and a modern responsive frontend.


โœจ Current Features

๐Ÿ” Authentication

  • Secure Login
  • JWT Authentication
  • Password Hashing (BCrypt)
  • Role-Based Access Control
  • Protected Routes
  • Authentication-ready frontend integration

Supported Roles

  • Admin
  • Fleet Manager
  • Financial Analyst

๐Ÿ“Š Dashboard

  • Fleet Overview
  • Driver Overview
  • Vehicle Status Summary
  • Operational Statistics Cards
  • Analytics Dashboard Layout
  • Responsive Design

๐Ÿš— Vehicle Management

  • Vehicle Listing
  • Fleet Summary Cards
  • Vehicle Status Indicators
  • Search Interface
  • CRUD-ready UI
  • Backend CRUD APIs

๐Ÿ‘จโ€โœˆ๏ธ Driver Management

  • Driver Listing
  • Driver Status Overview
  • Experience Information
  • Search Interface
  • CRUD-ready UI
  • Backend CRUD APIs

๐Ÿšš Fleet Operations

  • Fleet Operations APIs
  • Business Rule Validation
  • Dispatch Validation
  • Status Management

๐Ÿ”ง Maintenance

  • Maintenance Dashboard
  • Maintenance Management UI
  • Service Tracking Interface

โ›ฝ Fuel & Expenses

  • Fuel Management Interface
  • Expense Tracking Dashboard

๐Ÿ“ˆ Reports

  • Reports Dashboard
  • Analytics Layout
  • Data Visualization Ready

๐ŸŽจ User Experience

  • Responsive Design
  • Sidebar Navigation
  • Navbar
  • Theme Toggle Infrastructure
  • Loading States
  • Error Handling
  • Consistent Design System

๐Ÿง  Business Rules Engine

TransitOps includes centralized validation logic for enforcing operational rules.

Vehicle Rules

  • Unique Registration Number
  • Vehicle Status Validation
  • Dispatch Eligibility
  • Maintenance Restrictions

Driver Rules

  • License Validation
  • Driver Assignment Validation
  • Status Validation

๐Ÿ›  Tech Stack

Frontend

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • React Router
  • Axios
  • Lucide React

Backend

  • Node.js
  • Express.js
  • TypeScript
  • Prisma ORM
  • PostgreSQL
  • JWT
  • BCrypt
  • Zod

Database

  • Neon PostgreSQL

Deployment

  • Frontend โ†’ Vercel
  • Backend โ†’ Render
  • Database โ†’ Neon

๐Ÿ“‚ Project Structure

TransitOps
โ”‚
โ”œโ”€โ”€ frontend
โ”‚   โ”œโ”€โ”€ api
โ”‚   โ”œโ”€โ”€ components
โ”‚   โ”œโ”€โ”€ context
โ”‚   โ”œโ”€โ”€ layouts
โ”‚   โ”œโ”€โ”€ pages
โ”‚   โ”œโ”€โ”€ routes
โ”‚   โ”œโ”€โ”€ types
โ”‚   โ””โ”€โ”€ utils
โ”‚
โ””โ”€โ”€ backend
    โ”œโ”€โ”€ prisma
    โ”œโ”€โ”€ controllers
    โ”œโ”€โ”€ middleware
    โ”œโ”€โ”€ routes
    โ”œโ”€โ”€ services
    โ”œโ”€โ”€ validators
    โ””โ”€โ”€ utils

๐Ÿ” Authentication Flow

Login
   โ”‚
   โ–ผ
JWT Generated
   โ”‚
   โ–ผ
Stored in Browser
   โ”‚
   โ–ผ
Bearer Token
   โ”‚
   โ–ผ
Protected APIs

๐Ÿ“ก API Overview

Authentication

  • POST /api/auth/register
  • POST /api/auth/login
  • GET /api/auth/me

Dashboard

  • GET /api/dashboard/stats

Vehicles

  • Create Vehicle
  • Get Vehicles
  • Update Vehicle
  • Delete Vehicle

Drivers

  • Create Driver
  • Get Drivers
  • Update Driver
  • Delete Driver

๐Ÿงช Demo Credentials

Role Email Password
Admin [email protected] Password@123

Note: This hackathon prototype includes a pre-configured Admin account for demonstration purposes. The current frontend exposes the login flow only.


๐Ÿš€ Getting Started

Clone

git clone https://github.com/sakshibhatia17/Transit-Ops.git

Backend

cd backend
npm install

npx prisma generate

npm run dev

Frontend

cd frontend

npm install

npm run dev

๐Ÿ”ฎ Roadmap

The following features are planned as future enhancements:

  • โœ… Live frontend-backend API integration
  • ๐Ÿš› Complete Trip Management
  • ๐Ÿ“ Live GPS Vehicle Tracking
  • โ›ฝ Advanced Fuel Analytics
  • ๐Ÿ”ง Predictive Maintenance Scheduling
  • ๐Ÿ“Š Advanced Reports & Charts
  • ๐Ÿ”” Real-time Notifications
  • ๐Ÿ“ฑ Mobile Responsive PWA
  • ๐Ÿค– AI-powered Route Optimization
  • ๐Ÿ“ˆ Fleet Performance Forecasting

๐Ÿ‘ฅ Team

Developed collaboratively during a hackathon.

Contributions included:

  • Frontend Development
  • Backend Development
  • API Design
  • Database Design
  • Authentication
  • Business Rules Engine
  • Dashboard Development
  • Deployment
  • Documentation

๐Ÿ“„ License

Developed for educational and hackathon purposes.


โญ If you found this project interesting, consider starring the repository.

About

An end-to-end transport operations platform that digitizes fleet management, enforces business rules, and delivers real-time operational insights.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages