Skip to main content
All work
01

Kitengela Marines FC

The club's website, and the admin that keeps it true.

Role
Solo, full-stack
Year
2026
Context
Built for Kitengela Marines FC, Kajiado County
Kitengela Marines FC interface

Problem

Most small-club sites die the week after launch, when whoever built them stops updating them. The hard part was never the pages. It was making every fixture, squad, result and photograph something the club could change itself on a Sunday evening — without a developer, without a terminal, and without being able to break anything that matters.

What I built

Permissions are capabilities scoped per team, not roles checked in routes. A coach of the women's side cannot touch the men's squad, and the check lives in one place rather than being re-decided at every endpoint. That cost a layer of indirection before anything could be built on top of it.

The audit log is written by a database session listener rather than by the routes, so no endpoint can forget to record a change. It means the log cannot be bypassed, and it means the writes are harder to reason about when something unexpected appears in it.

Uploads are re-encoded rather than stored as sent, which strips the GPS coordinates phones embed in match-day photographs. Slower uploads, and a dependency on image tooling in production.

The front end distinguishes “nothing announced yet” from “the server is not answering”. Telling supporters the club has no fixtures because the API is down would be a lie, so every fetch returns a reason and every page has two empty states instead of one. Twice the states to write, and the only reason the site reads honestly on a free tier that sleeps.

Every kick-off is sent with an explicit +03:00 offset and displayed in Nairobi time. A form that sends a bare time tells every supporter the wrong hour.

Deleting is refused rather than cascaded. A photograph in use, a category with articles, a player with match records — the API says what is in the way instead of quietly taking related data with it. More friction for the club, and nothing disappears by accident.

Outcome

Live, with the club publishing its own news, squads, fixtures, results and photography. Twenty-three tables, 232 backend tests. The club has needed me for nothing since the content went in.

What I'd change: the API sleeps on a free tier, so the first visitor after a quiet spell waits. Loading skeletons and a patient retry make that survivable rather than solved — the real fix costs money, not code. And I'd configure database constraint naming from the first migration rather than hand-correcting three of them later.

Stack

  • Next.js 16
  • React 19
  • TypeScript
  • Flask 3
  • PostgreSQL
  • Cloudinary