Skip to content

Latest commit

Β 

History

History
279 lines (157 loc) Β· 4.65 KB

File metadata and controls

279 lines (157 loc) Β· 4.65 KB

πŸš– Campus Ride – Smart E-Rickshaw Pooling System (Software Engineering Project)

Live Website: https://campus-ride-smart-e-rickshaw-poolin-rose.vercel.app/

GitHub Repository: https://github.com/Ishaan0709/Campus-Ride-Smart-E-Rickshaw-Pooling-System

πŸ“Œ Overview

Campus Ride is a smart, eco-friendly, OTP-verified E-Rickshaw pooling system built for university campuses. It enables students, drivers, and administrators to seamlessly coordinate transportation through:

Real-time ride requests

Intelligent ride pooling

Live driver tracking

OTP-based boarding verification

Role-based authentication

Smooth UI/UX for different user types

This project was developed as a Software Engineering (SE) course project, following proper SDLC guidelines, documentation (SRS, DFD, UML), testing, and deployment.

🎯 Problem Statement

Large campuses like Thapar University face challenges:

Long walking distances between blocks

No organized real-time pooling system

Difficulty locating available E-rickshaws

Safety concerns without OTP verification

Lack of a unified platform for students & drivers

Campus Ride solves this by offering a centrally managed, ride-pooling system to reduce waiting time, congestion, and environmental impact.

πŸš€ Key Features πŸ‘¨β€πŸŽ“ Student Module

Firebase sign-up/login

Personalized dashboard (Name, Roll No., Email)

Book a ride with:

Pickup point

Drop location

Time preference

Pool/Solo mode

Real-time status updates

Track assigned driver live on map

OTP verification system

Ride history & re-booking

Smooth, modern UI with animations

πŸš— Driver Module

Firebase sign-up/login

Driver dashboard with:

Availability toggle

New ride requests

Student details & pickup point

OTP verification before ride starts

Live route & trip updates

Daily ride summary

πŸ§‘β€πŸ’Ό Admin Module

Admin authentication

Seed demo data (for presentation)

Ability to:

View all students

View all drivers

Reset simulation

(Admin demo mode does not affect Student real experience.)

πŸ—Ί Live Mapping & UI

Beautiful Leaflet-based map

Glassmorphism UI theme

Route paths & live movement

Auto icons + pickup/drop markers

πŸ›  Tech Stack Frontend

React (Vite + TypeScript)

Zustand (global state management)

Tailwind CSS

ShadCN UI Components

Framer Motion animations

Leaflet JS (maps)

Backend

Firebase Authentication

Firebase Firestore (user metadata)

Firestore collections:

/users

/students

/drivers

/rides

/locations

Deployment

Vercel Hosting

πŸ“ Project Structure src/ β”œβ”€β”€ components/ β”‚ β”œβ”€β”€ MapPanel.tsx β”‚ └── UI components β”œβ”€β”€ pages/ β”‚ β”œβ”€β”€ auth/ β”‚ β”‚ β”œβ”€β”€ StudentAuth.tsx β”‚ β”‚ β”œβ”€β”€ DriverAuth.tsx β”‚ β”‚ └── AdminAuth.tsx β”‚ β”œβ”€β”€ StudentDashboard.tsx β”‚ β”œβ”€β”€ DriverDashboard.tsx β”‚ └── AdminDashboard.tsx β”œβ”€β”€ store/ β”‚ β”œβ”€β”€ useAppStore.ts β”‚ └── AuthContext.tsx (firebase) β”œβ”€β”€ lib/ β”‚ └── firebase.ts β”œβ”€β”€ App.tsx └── main.tsx

πŸ” Role-Based Authentication

Each signup stores:

users/{uid}: name email role: "student" | "driver" | "admin" createdAt

Protected routes:

/student β†’ Students only

/driver β†’ Drivers only

/admin β†’ Admin only

If a student manually types /driver β†’ redirected safely.

🧠 Intelligent Pooling Flow

Student requests ride

System searches active drivers

Pool formed with matching routes

Driver receives request

OTP verification at pickup

Live ride tracking

Trip completion + history logging

πŸ§ͺ Software Engineering Document Support

This project includes (or supports):

SRS Document

DFD Level 0, 1, 2

Use Case Diagrams

ER Diagram

Activity & Sequence Diagrams

Functional & Non-Functional Requirements

Testing Scenarios & Test Cases

🧭 How to Run Locally

  1. Clone the repository git clone https://github.com/Ishaan0709/Campus-Ride-Smart-E-Rickshaw-Pooling-System.git cd Campus-Ride-Smart-E-Rickshaw-Pooling-System

  2. Install packages npm install

  3. Setup Firebase environment

Create .env:

VITE_FIREBASE_API_KEY=xxxx VITE_FIREBASE_AUTH_DOMAIN=xxxx VITE_FIREBASE_PROJECT_ID=xxxx ...

  1. Run npm run dev

App will run at:

http://localhost:5173

πŸ“Œ Future Improvements

Real-time driver location from GPS

Machine-learning based route pooling

Integrated wallet + payments

Panic button / safety monitoring

Admin analytics dashboard

QR boarding verification

Push notifications (FCM)

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

Team Project (Software Engineering Course)

Designed, developed, and maintained by:

Your Name(s)

⭐ Support

If you like this project, feel free to ⭐ star the repo! It helps a lot and motivates further development ❀️