School Van Management System β€” Real-Time Tracking and Management

Team

Table of Contents

  1. Introduction
  2. Solution Architecture
  3. Software Designs
  4. Testing
  5. Conclusion
  6. Links

Introduction

School transportation management is often handled manually using paper records or informal communication methods, which can lead to inefficiencies, poor coordination, and safety concerns. Tracking student registrations, van routes, schedules, and driver assignments becomes difficult as the number of students and vehicles increases.

The School Van Management System is a real-time, web-based platform designed to streamline school van operations. It digitizes the management of students, vans, routes, and schedules, improving safety, transparency, and operational efficiency for parents, drivers, and school administrators.

Key Capabilities


Solution Architecture

The system follows a three-tier layered architecture separating human interaction, frontend presentation, backend processing, and data/real-time services.

System Architecture

Figure 1 β€” School Van Management System Architecture

Layer Overview

Layer Components Description
Human Layer Parent, Driver, Admin End-users interacting with the system. Parents track vans, drivers update location/attendance, admins manage entities.
Frontend (React) Parent Portal, Driver App, Admin Panel Role-specific React (Vite) single-page applications. Built with Tailwind CSS and Leaflet for map tracking.
Backend (Express) API Gateway, WebSocket Server A Node.js Express service exposing RESTful APIs and Socket.io for real-time location and notifications.
Data Layer PostgreSQL (Supabase) Persistent relational storage for users, students, vans, routes, and attendance records.

Data Flow

  1. Driver Operation: The driver begins a journey from the Driver App, broadcasting real-time GPS coordinates via WebSockets.
  2. Attendance Update: The driver marks a student as boarded or dropped off, triggering an API call to the backend.
  3. Data Processing: The Node.js Backend receives the location or attendance data, saving the necessary state to PostgreSQL.
  4. Real-time Broadcast: The WebSocket server instantly pushes updates to the active Parent portals.
  5. Parent Monitoring: The Parent Portal updates the map interface and displays notifications of their child’s status in real time.

Software Designs

Technology Stack

Backend (code/backend)

Category Technology
Framework Express 5.2+
Language TypeScript / Node.js
Database PostgreSQL (via Supabase)
Real-time Socket.io
Authentication JWT (jsonwebtoken) & bcryptjs
Validation Zod
Testing Jest & Supertest

Frontend (code/frontend)

Category Technology
Framework React 19
Build Tool Vite 7
Language TypeScript / JavaScript (ES6+)
Styling Tailwind CSS
Map Services Leaflet & React-Leaflet
Real-time Client Socket.io-client
HTTP Client Axios
Testing Vitest & React Testing Library

Backend Project Structure

code/backend/src/
β”œβ”€β”€ config/              # Environment configurations
β”œβ”€β”€ constants/           # System constants
β”œβ”€β”€ controllers/         # Route request handlers
β”œβ”€β”€ data/                # Data structures
β”œβ”€β”€ middleware/          # Express middlewares (auth, validation)
β”œβ”€β”€ models/              # Database models
β”œβ”€β”€ routes/              # Express API route definitions
β”œβ”€β”€ services/            # Business logic and external integrations
β”œβ”€β”€ sockets/             # Socket.io handlers
β”œβ”€β”€ sql/                 # SQL queries and scripts
β”œβ”€β”€ types/               # TypeScript interfaces
└── validators/          # Zod schemas for input validation

API Endpoints Summary

Category Endpoint Method Role
Auth /api/auth/login POST Public
Auth /api/auth/register POST Public
Parents /api/parents/:id GET Parent, Admin
Tracking /api/tracking/location POST / GET Driver, Parent
Journey /api/journey/event POST Driver
Attendance /api/studentBoarding POST Driver
Notifications /api/notifications GET Parent, Driver

Testing

The project utilizes testing frameworks across the stack to ensure reliability and robustness.

Test Layers

Layer Scope Tools
Backend Unit & Integration Controllers, authentication logic, and API endpoints Jest, Supertest
Frontend Component Tests React components, UI states, and map rendering Vitest, React Testing Library
End-to-End Full journey simulation, attendance marking, real-time sync Manual Testing / Postman

Conclusion

The School Van Management System successfully delivers a structured and efficient solution for managing school transportation operations. By automating manual processes and introducing real-time capabilities, the system improves operational efficiency, data accuracy, and overall reliability.

Key outcomes of the project:

Future enhancements may include integration with school administration software, support for automated SMS notifications, and predictive route optimization.