All projects

Case study — 17 / 27

Car Rental Platform

End-to-end car rental web app covering fleet browsing, checkout, and a full admin suite for vehicles, bookings, pricing, and reporting.

Category
Web App
Engagement
Client Work
Year
2026
Core stack
React, Tailwind CSS, Protected Routes
React 18 · Vite · TypeScript · Tailwind CSS · shadcn/ui
01

Overview

A complete car rental web application covering the full customer journey from browsing the fleet to checkout and booking confirmation, with a protected account area and a comprehensive admin suite.

Rental businesses needed a platform that handled online reservations end-to-end without phone calls — including add-on selection, price breakdowns, and booking management for returning customers.

The public side covers fleet browsing, vehicle comparison, detail pages, a booking widget with add-ons and price breakdown, checkout, confirmation, and an account portal. The admin side delivers a full operator suite: vehicle management, booking calendar, customer records, maintenance tracking, pricing controls, and reports.

02

Role & contribution

Delivered a production-ready rental platform that handles the full booking lifecycle from fleet browse to confirmation and admin follow-up.

  1. 01Built the full car rental platform as a client project.
  2. 02Developed public pages: Home, Fleet, VehicleDetail, Bookings, Checkout, Confirmation, Account, Policies, and Support.
  3. 03Built the booking flow with BookingWidget, AddOnsPicker, and PriceBreakdown components.
  4. 04Developed vehicle comparison with CompareDrawer and specs display with SpecsGrid.
  5. 05Built admin pages: Dashboard, AdminVehicles, AdminBookings, AdminCalendar, AdminCustomers, AdminMaintenance, AdminPricing, and AdminReports.
  6. 06Implemented protected routing with ProtectedRoute for the account and admin sections.
03

Key features

  1. 01

    Vehicle Comparison

    Side-by-side CompareDrawer lets customers compare up to two vehicles on specs, pricing, and features before committing to a rental.

  2. 02

    Booking Widget

    Self-contained widget handles date selection, add-on picking, and live price breakdown in a single reusable component.

  3. 03

    Full Admin Suite

    Eight admin pages cover every operator need: vehicles, bookings, calendar, customers, maintenance, pricing, and reports.

  4. 04

    Protected Routes

    Account and admin sections are guarded by ProtectedRoute — unauthenticated users are redirected to login.

04

Core modules

Fleet & Comparison
Vehicle listing, detail pages with SpecsGrid and CarGallery, and CompareDrawer for side-by-side comparison.
Booking Flow
BookingWidget with date/time, AddOnsPicker, PriceBreakdown, Checkout, and Confirmation pages.
Customer Account
Protected account portal with booking history and profile management.
Admin Operations
Dashboard, AdminVehicles, AdminBookings, AdminCalendar, AdminCustomers, AdminMaintenance, AdminPricing, AdminReports.
05

Architecture

Architecture Type
React SPA with file-based domain component organization (domain/admin, domain/booking, domain/cars) and protected route pattern.
Database Design
TypeScript-typed mock data for vehicles, bookings, customers, and pricing.
Security Features
ProtectedRoute component guards account and admin sections; React Hook Form validation on all inputs.
Deployment
Vite build for static hosting.
State Management
Component state with domain-specific hooks and React Router state for booking flow handoff.
06

Challenges & solutions

  1. 01

    Multi-step Booking Handoff

    Passed booking state (dates, vehicle, add-ons) cleanly across the widget → checkout → confirmation flow without prop drilling.

  2. 02

    Admin Suite Scope

    Maintained consistent layout and navigation across eight distinct admin pages while keeping each module independently navigable.

07

Outcomes & impact

  1. Complete Rental Workflow

    Covers the full customer and operator lifecycle — browse, book, manage, and report — in one platform.

  2. Reusable Template

    Domain-organized component structure makes the platform adaptable to other rental verticals.

08

Roadmap

  1. Phase 1 - Fleet & BookingShipped

    • Fleet browsing and vehicle detail
    • Booking widget with add-ons and price breakdown
    • Checkout and confirmation pages
    • Customer account portal
  2. Phase 2 - Admin SuiteShipped

    • AdminVehicles, AdminBookings, AdminCalendar
    • AdminCustomers, AdminMaintenance, AdminPricing, AdminReports
    • Protected routing
  3. Phase 3 - Future (Planned)Planned

    • Backend + database
    • Payment integration
    • Email booking confirmations
    • Real-time availability
09

Tech stack

  • React 18
  • Vite
  • TypeScript
  • Tailwind CSS
  • shadcn/ui
  • Radix UI
  • Material UI (MUI)
  • React Router
  • Lucide React
  • Recharts
  • Embla Carousel
  • React Hook Form
  • Framer Motion
  • Sonner
  • date-fns
Next projectEvent Planner WebsiteEvent planning portfolio site with service pages, guides, and a consultation booking form.