Back to Portfolio

Full-Stack Web Application

FleetHub | Enterprise Fleet & Visa Management Platform

FleetHub is a comprehensive enterprise-level web application designed to streamline fleet management operations, visa processing, financial tracking, and compliance management for transportation companies. Built with modern technologies, it handles complex business workflows involving vehicles, drivers, customers, corporate contracts, and multi-entity financial transactions.

FleetHub | Enterprise Fleet & Visa Management Platform - Screenshot 1

Project Overview

FleetHub is a comprehensive enterprise-level web application that transforms how fleet management companies in the UAE transportation sector operate. The platform eliminates operational fragmentation by consolidating 5+ disconnected systems into a single, powerful application.

The system addresses critical business challenges including multi-national visa processing, complex vehicle ownership models (owned, financed, rented), multi-partner vehicle ownership with percentage allocation, and sophisticated financial tracking across multiple entities. Every aspect of fleet operations is managed through an intuitive interface with real-time visibility.

Built with a robust database schema featuring 27 interconnected tables, FleetHub handles the complete lifecycle of vehicles - from purchase through operation to sale - while maintaining comprehensive audit trails for compliance. The platform supports multiple ownership models, tracks insurance and registration, manages driver assignments, and documents traffic accidents with complete historical preservation.

The financial system is particularly sophisticated, supporting invoice generation for 6 different entity types (customers, companies, drivers, vehicles, suppliers, applications) with automated tax calculations, discount management, installment tracking, and multi-currency precision. The double-entry accounting system ensures financial accuracy with automated reconciliation.

FleetHub's visa and application processing module streamlines the entire workflow from request submission through completion, handling labor transfers, document uploads, and payment tracking. The contract management system enables corporate fleet arrangements with custom pricing per vehicle and automated invoice generation.

Designed for scalability and built with enterprise-grade security including role-based access control, comprehensive audit logging, and session management, FleetHub delivers measurable business impact: 70% reduction in data entry time, 99% faster decision making, and 15% improvement in data accuracy.

Key Features

Unified data management consolidating customers, vehicles, drivers, documents, and financial records
Multi-entity invoice system supporting 6 different entity types with automated calculations
Comprehensive vehicle fleet management with multiple ownership models (owned, financed, rented)
Multi-partner vehicle ownership with percentage allocation and visa company associations
Advanced financial system with double-entry accounting and transaction tracking
Corporate contract management with vehicle assignment and automated billing
Complete visa and application processing workflow with labor transfer documentation
Real-time analytics dashboard with revenue trends and key business metrics
Document management with Azure Blob Storage integration and expiry alerts
Role-based access control (RBAC) with granular permissions
Comprehensive audit logging for compliance and regulatory requirements
Customer relationship management with visa status and salary tracking
Traffic accident documentation and policy violation records
Vehicle lifecycle tracking from purchase through operation to sale
Payment tracking with installment support and automated reminders
Insurance and registration renewal tracking with notification system
Driver assignment history with complete date range tracking
Multi-currency financial precision with automated tax and discount calculations
Advanced search functionality across 27 database tables
PDF invoice generation and export capabilities
Historical data preservation with soft deletes for critical business data
Vehicle reminder system for renewals and maintenance scheduling
Partner management for multi-ownership vehicle arrangements
Corporate account designation and contract-based invoicing
Flexible invoice items with custom pricing and categorization

Challenges

  • Designing a database schema to support 6 different invoice entity types while maintaining referential integrity
  • Implementing flexible vehicle ownership models (owned, financed, in-house financed, rented) in a single table
  • Managing 40+ database migrations over 3 months while preserving production data with zero loss
  • Ensuring precise financial calculations across multi-currency transactions with proper decimal handling
  • Building performant search across 27 interconnected tables with sub-200ms response times
  • Handling complex multi-partner vehicle ownership with percentage allocations and visa company associations
  • Creating a polymorphic invoice system that prevents orphaned records and maintains data integrity
  • Implementing cascade deletion rules that preserve critical business data while removing dependencies
  • Optimizing database queries for large datasets with proper indexing strategies
  • Managing complex business workflows involving vehicles, drivers, customers, and corporate contracts

Solutions

  • Implemented optional foreign keys with application-level validation ensuring exactly one entity per invoice
  • Designed conditional schema with discriminator field (ownedOrFinanced) dynamically showing/hiding relevant fields
  • Adopted incremental migration approach with backups, testing, and reversible migrations for data safety
  • Used PostgreSQL DECIMAL(12,2) for all financial amounts with server-side-only calculations and consistent rounding
  • Built intelligent search with entity-specific indexes, parallel queries, and result prioritization
  • Created VehiclePartner junction table supporting multiple partners per vehicle with ownership percentages
  • Developed validateInvoice() function enforcing business rules at the application layer
  • Utilized Prisma cascade rules with careful onDelete behaviors and soft deletes for critical data
  • Implemented Prisma include for eager loading, database indexes on foreign keys, and query result caching
  • Designed 27-table normalized database with referential integrity and materialized views for performance

Results & Impact

efficiency

70% reduction in data entry time (from 20 hrs/week to 6 hrs/week)

reporting

Real-time report generation vs 2-3 days previously - instant access

accuracy

15% improvement in data accuracy (from 80-85% to 98-99%)

consolidation

80% reduction in systems used (from 5+ tools to 1 platform)

decision Making

99% faster decision making (from days to minutes)

search Performance

Sub-200ms search across entire 27-table database

data Integrity

Zero data loss across 40+ database migrations

scalability

Successfully handles complex workflows for transportation companies

Project Info

Client Type

UAE Transportation Company - Enterprise Client

Duration

4 months (September 2025 - December 2025)

My Role

Full-Stack Developer & System Architect

Team Size

Solo Development

Technologies Used

Next.js 15React 19PostgreSQLPrisma ORMNextAuth.jsAzure Blob StorageTailwindCSS 4.0Chart.jsDockerDocker Compose

Tags

Next.jsReactPostgreSQLPrismaEnterpriseFleet Management

Like This Project?

Let's work together on your next project

Start a Project
Chat with us!