Next.js
FleetDesk: Car Rental Booking Platform
A car rental website with an owner dashboard. Customers pick a car, see which days are free, and book and pay online with a test card. The owner manages bookings, cars and revenue. The same car can never be booked twice for the same days.
- Category
- Next.js
- My role
- Developer. I planned, built, tested and deployed it.
- Tech stack
- Next.js
- React
- TypeScript
- Tailwind CSS
- Redux Toolkit
- TanStack Query
- React Hook Form
- Zod
- PostgreSQL
- Supabase
- GraphQL
- Recharts
- Vitest
- Playwright
- GitHub Actions
- Vercel
Overview
FleetDesk is a booking website for a small car rental business. A customer can browse the cars, filter by type, price and dates, and book one in three simple steps. The owner logs in to a dashboard to see revenue, manage bookings and look after the fleet. I built it to a real full-stack flow: public pages, a private dashboard, a real database and automated tests. Try the owner dashboard with owner@fleetdesk.dev / demo1234 (the login page has a "Fill in demo login" button). For a booking, use the test card 4242 4242 4242 4242 with any future date.
The problem
Small rental businesses often take bookings by phone or WhatsApp, which leads to double bookings, forgotten payments and no clear picture of revenue. FleetDesk puts it in one place. Customers see real availability and pay online. The owner sees every booking and its status, and the numbers that matter. The database itself refuses a second booking on the same car and dates, so a double booking cannot happen, even if two people book at the same moment.
Features
- Browse cars and filter by type, price and dates; only cars free on those dates are shown
- Calendar of booked days on each car, with a live price for the dates you choose
- Three-step booking (dates, details, review and pay) with form validation
- Test-card payment, including a declined-card case
- Owner dashboard: revenue, paid pickups, occupancy and top cars, with charts for 7, 30 or 90 days
- Bookings table: search, filter, sort, pagination, and status changes (picked up, returned, cancelled)
- Fleet manager: add, edit and delete cars, upload photos, or mark a car as in maintenance
- Settings page with business details and dark mode
- Double booking blocked by the database
- Over 90 automated tests, browser tests and an accessibility scan, run on every push





