Assessment project · Not deployed
ClinicSlot
Appointment booking that accounts for competing requests
Full-stack developer
The problem
An available appointment can be requested by more than one person at once. Network retries can also repeat a booking request. A booking system needs clear rules for both situations.
What I built
I built the appointment API and patient interface for browsing slots, booking, looking up or cancelling a booking, and viewing booking history as part of a Koya assessment project.
- Patients browse appointments and filter by provider before submitting a booking.
- The API uses transactions and database constraints to prevent two confirmed bookings for one slot.
- Repeat requests with the same idempotency key can return the original response; cancellation retains the booking history.
An engineering decision
Enforce booking integrity in the database. Row locks coordinate competing requests, while a unique constraint provides a second guard against double-booking. The interface calls a server-side API layer so the integration key stays out of the browser.
Evidence & project status
Repository documentation records 323 passing backend, BFF, and browser/integration tests on 9 November 2026. These are recorded local results, not a fresh test run or hosted reliability claim. Deployment remains pending. The assessment uses synthetic data and does not implement patient identity verification.
Built with
Next.js · NestJS · PostgreSQL · Drizzle · Playwright