Skip to content

imjoe77/SmartTransit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚍 SmartTransit

πŸ† Hackathon Winning Project

An AI-powered intelligent public transportation platform that modernizes fleet management through real-time GPS tracking, predictive analytics, driver fatigue detection, AI assistance, and live transit monitoring.

SmartTransit Banner

Next.js React TypeScript Node.js Express Socket.IO MongoDB Python TailwindCSS License


🌟 Highlights

  • πŸ† Hackathon Winning Project
  • 🚍 AI-powered Smart Transit Platform
  • πŸ“ Real-time GPS Bus Tracking
  • ⚑ Socket.IO Live Communication
  • πŸ€– AI Transit Assistant
  • 🧠 Driver Fatigue Detection
  • πŸ“Š Predictive ETA & Delay Analytics
  • πŸ‘¨β€πŸ’Ό Multi-role Dashboard (Admin β€’ Driver β€’ Student)
  • ☁️ Production Deployment on Vercel & Render

πŸ“– Overview

SmartTransit is a modern intelligent transportation management platform built to improve public transit through real-time communication, artificial intelligence, and predictive analytics.

The platform provides a complete ecosystem for students, drivers, and administrators by combining live vehicle tracking, intelligent ETA prediction, fatigue monitoring, AI-powered assistance, and centralized fleet management into a single scalable application.

Unlike traditional GPS tracking systems, SmartTransit focuses on operational intelligence by integrating machine learning, real-time sockets, and cloud-native architecture to enhance both passenger experience and fleet efficiency.


✨ Features

🚍 Real-Time Fleet Management

  • Live Bus Tracking
  • GPS Position Updates
  • Route Monitoring
  • Arrival Notifications
  • Bus Assignment
  • Driver Console

πŸ€– AI Features

  • AI Transit Assistant
  • Delay Prediction
  • Smart ETA Estimation
  • Operational Insights
  • Intelligent Route Suggestions

😴 Driver Safety

  • AI Fatigue Detection
  • Driver Monitoring
  • Safety Alerts
  • Health Status Tracking

πŸ‘₯ User Portals

πŸ‘¨β€πŸ’Ό Admin

  • Fleet Management
  • Route Management
  • Driver Management
  • Student Management
  • Analytics Dashboard

🚌 Driver

  • Start / End Trips
  • Live GPS Broadcast
  • Boarding Status
  • Emergency Controls
  • Route Navigation

πŸŽ“ Student

  • Live Bus Tracking
  • ETA Prediction
  • Bus Status
  • Boarding Updates
  • Route Information

πŸ— System Architecture

                    SmartTransit

                Next.js Frontend
                       β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚              β”‚              β”‚
        β”‚              β”‚              β”‚
   Socket Service   Fatigue API   AI Services
      (Node.js)       (Python)    (OpenRouter)

                       β”‚
                 MongoDB Database

The application follows a modular architecture by separating real-time communication and AI services into dedicated backend services, improving scalability and maintainability.


πŸ’» Tech Stack

Frontend

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • GSAP

Backend

  • Node.js
  • Express.js
  • Socket.IO

AI & Machine Learning

  • OpenRouter API
  • Python
  • Fatigue Detection Service

Database

  • MongoDB

Authentication

  • NextAuth

Deployment

  • Vercel
  • Render

πŸ“‚ Project Structure

SmartTransit
β”‚
β”œβ”€β”€ app/
β”œβ”€β”€ components/
β”œβ”€β”€ lib/
β”œβ”€β”€ models/
β”œβ”€β”€ public/
β”œβ”€β”€ socket-service/
β”œβ”€β”€ fatigue-service/
β”œβ”€β”€ scripts/
β”œβ”€β”€ types/
β”œβ”€β”€ README.md
└── .env.example

⚑ Getting Started

Clone Repository

git clone https://github.com/imjoe77/SmartTransit.git
cd SmartTransit

Install dependencies

npm install

Run development server

npm run dev

πŸ” Environment Variables

Create a .env.local

Example

MONGODB_URI=

NEXTAUTH_URL=

NEXTAUTH_SECRET=

GOOGLE_CLIENT_ID=

GOOGLE_CLIENT_SECRET=

GITHUB_CLIENT_ID=

GITHUB_CLIENT_SECRET=

OPENROUTER_API_KEY=

NEXT_PUBLIC_SOCKET_URL=

SOCKET_SERVICE_URL=

SOCKET_SERVICE_TOKEN=

FATIGUE_SERVICE_URL=

🌐 Deployment

Frontend

  • Vercel

Backend Services

  • Render

Database

  • MongoDB Atlas

Add screenshots here

  • Landing Page
  • Admin Dashboard
  • Driver Dashboard
  • Student Tracking
  • AI Assistant
  • Route Management
  • Driver Fatigue Detection
  • Mobile Interface

πŸš€ Future Improvements

  • Push Notifications
  • Offline Bus Tracking
  • Mobile Application
  • Predictive Traffic Analysis
  • Attendance Automation
  • Multi-City Support
  • Fleet Optimization AI
  • Voice Assistant

🀝 Contributing

Contributions are welcome!

If you'd like to improve SmartTransit:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.

See the LICENSE file for details.

MIT License Template: https://opensource.org/licenses/MIT


πŸ‘¨β€πŸ’» Author

Nathaniel Bandi

GitHub: https://github.com/imjoe77


⭐ If you found this project interesting, consider giving it a star!

About

AI-powered smart public transportation platform with real-time bus tracking, fatigue detection, predictive ETA, and intelligent fleet management.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors