Emmanuel BalogunFrontend & Full-Stack Developer
--:--:-- WAT

08Creative services · Booking app

Kòkó

Book the hands behind the work

A booking web app for independent photographers, barbers, braiders and makeup artists in Lagos and Abuja. Clients browse real portfolios, pick a time that is actually free and secure it with a deposit; creatives get a small studio dashboard for their week.

Year
2026
Role
Frontend developer
Stack
React 19 · TypeScript · React Router 7 · CSS Modules · Web Locks + BroadcastChannel · Vite · vite-plugin-pwa · Vitest · Playwright + axe-core · GitHub Actions
Kòkó’s discover page: the headline “Book the hands behind the work” beside portrait photographs, with craft filters and a search bar below
PlateDiscover on desktop. Creatives and prices are fictional; the 103 photographs are real and credited.
A — The problem

Independent creatives take bookings through DMs, which means double-bookings, no-shows and awkward deposit conversations. A booking flow has to know the creative’s real availability and hold a slot fairly while a client pays.

B — What it does
  • 01Discover creatives by craft, city, price and availability, with filters in the URL.
  • 02Each profile has a masonry gallery with a keyboard- and swipe-friendly lightbox.
  • 03Book in four steps — service, time, details, deposit — with the slot held for ten minutes and a visible countdown.
  • 04Reschedule or cancel under the creative’s notice policy, add the booking to a calendar, and see it arrive live in the studio dashboard.
C — Decisions & trade-offs
  1. D-01

    The mock API behaves like a server

    Pages only talk to one client module that returns promises with realistic latency and typed errors such as slot-taken, hold-expired and card-declined. A footer control makes the network slow, flaky or offline, so loading, retry and offline states are real.

    Trade-offBuilding a fake backend takes time, but swapping in real HTTP calls would not touch the UI.

  2. D-02

    Two tabs cannot book the same slot

    Every write runs inside a Web Lock, so two tabs booking the same slot at the same moment cannot both win. Changes are broadcast so open pages refresh, and a slot taken elsewhere disappears with an explanation.

    Trade-offLocks only coordinate one browser; a real deployment would need the same guarantee on the server.

  3. D-03

    Time is always Lagos time

    Slots are stored as minutes past midnight on a date in Africa/Lagos, whatever the visitor’s timezone — which is what a client in London booking a Lagos barber expects.

    Trade-offVisitors abroad see Lagos times rather than their own, so the timezone is labelled.

D — Outcome
10 minslot holds with a visible countdown
103real photographs, encoded to AVIF and WebP with zero layout shift
3test cards covering approved, declined and insufficient funds
E — Known limits
  • Everything runs against a mock API in the browser; no real bookings or payments are made.
  • Data lives in the visitor’s browser, so the studio dashboard only sees bookings made on the same device.