04 / Sports Booking · Case Study

Sports Venue Booking & Matchmaking

A B2B2C sports platform live in Pakistan: consumer Flutter app, Next.js admin dashboard and a versioned NestJS API. Book venues, find matches, pay.

RoleTrainee Software Engineer, then Project Manager · Slidey LLC
ScopeBackend, admin panel and Flutter app
TimelineNov 2024 to Present
ShapeB2B2C · app + admin + API
Sportefy consumer app and admin dashboard
The Brief

Book venues, find matches, pay.

Players book courts, join matches and pay from a consumer app; venue operators and platform staff run everything from an admin dashboard: all on one versioned API that never breaks the mixed-version mobile install base.

Consumer Flutter app: booking, slots, QR check-in & wallet, offline-first with request replay
Realtime matchmaking & match chat: Supabase Realtime + Postgres row-level security
Next.js admin dashboard over a versioned /v1 API, one shared RBAC matrix (5 platform roles + venue-scoped staff)
Payments domain: pluggable gateway adapter (Paymob), wallet / credits ledger, promo codes, PDF booking confirmations
Architecture & Stack

Two clients, one versioned contract.

Clients
Flutter appiOS + Android · BLoC
Next.js 16 adminOps dashboard
Contract
/v1 RESTAdditive-only · OpenAPI gates
Core
NestJS 1151 modules · layered use-cases
Data
Prisma 7 · PostgreSQLOn Supabase
Supabase RealtimeMatch chat · RLS
PaymobPayments
Stack
Mobile
Flutter 3 · BLoC
Admin
Next.jsReactTailwind
Backend
NestJS 11Prisma 7PostgreSQL
Realtime · Pay
Supabase Realtime · RLSPaymob
Key Decisions
01Monorepo: NestJS backend & Next.js admin share one typed contract & RBAC package
02Additive-only /v1 contract + server-driven version gating: zero breaking releases across a mixed-version install base
03OpenAPI drift gates enforced in CI
Walkthrough

Across app and dashboard.

Consumer App · Flutter
Sportefy app home: wallet card and match requests
Home: wallet & match requests
Sportefy venues list
Venues by sport & distance
Sportefy slot picking
Picking a slot & match type
Sportefy checkout paid in credits
Checkout: paid in credits
Sportefy match details with teams
Match details, teams & match code
Sportefy match chat
Realtime match chat
Admin Dashboard · Web
Sportefy command center
Command center: credits, cash & court performance
Sportefy booking trends report
Reports: app & manual booking trends
Sportefy bookings list
All bookings, app & manual
Sportefy availability and slot management
Availability & slot management
Sportefy payment verification queue
Payment verification queue
Sportefy membership plans
Membership plans & access

Screens from app v1.5.1 and the admin dashboard, running on demo data.

51Domain modules
260+/v1 endpoints
1,600+Flutter tests

Live on the App Store and Play Store with a Next.js ops dashboard behind it, shipping continuously with zero breaking releases across a mixed-version mobile install base.

Next case study

Plexor: AI-Based Surveillance System

→