Skip to content
All work

Case study · Own product

Duladula: sports-court booking

Players find and book courts by city, sport and time. Holds carry payment deadlines, Gemini checks payment receipts, and owners get a live timetable with peak pricing.

Role
Developer, with a business partner
Company
Duladula
Project
2026 – Present
Platforms
SupabaseCloudflareGemini
  • TanStack Start
  • React
  • Supabase
  • Postgres
  • Supabase Realtime
  • Tailwind v4
  • shadcn/ui
  • Cloudflare Workers
  • Gemini
  • pdf-lib

Context

Duladula is a sports-court booking platform I run with a business partner. Players search by city, sport and time across venues. Owners manage courts, prices and payments from one dashboard.

How it was built: the first version was prototyped with an AI app builder. Since then I’ve hand-built the SEO, security hardening, invoicing, rescheduling and peak pricing. Every commit since August 2026 is hand-written.

What I built

Booking and payment

  • A booking creates a hold with a payment deadline.
  • Players pay by GCash or Maya QR and upload the receipt.
  • An AI check (Gemini) confirms the image is a real payment proof before it reaches the owner.
  • The owner approves, with reminders and an auto-approve fallback so bookings don’t stall.

For venue owners

  • A live timetable through Supabase Realtime.
  • Peak-hour pricing, overnight hours, and day closures that reschedule affected bookings.
  • Staff roles, coupons and revenue stats.

For admins

  • A ledger with CSV export and PDF invoices generated with pdf-lib.
  • “View as owner” for support, and a maintenance switch.

Architecture

  • App: TanStack Start with Tailwind v4 and shadcn/ui, on Cloudflare Workers.
  • Data: Supabase Postgres across 92 migrations. Overlapping bookings and hold rules are enforced in the database, not just in the UI, and scheduled sweeps release expired holds.

An illustration of database-level overlap protection in Postgres (not the production schema):

create extension if not exists btree_gist;

alter table bookings add constraint no_double_booking
  exclude using gist (court_id with =, tstzrange(starts_at, ends_at) with &&)
  where (status in ('held', 'confirmed'));

Outcome

Duladula is live at book.duladula.app. Holds, payment proof checks and owner approval run with reminders and fallbacks, so owners don’t have to chase payments by hand.