rdavi
System Online
← Back to projects

active

2026

Vintage Cowboys

A self-hosted South African e-commerce store built on PocketBase, where every item is one-of-a-kind.

Vintage Cowboys hero image

Overview

Vintage Cowboys sells single-unit vintage stock, so the usual quantity-based inventory model does not apply That constraint drives the whole backend: items move through `active` → `on_hold` → `sold`, and the store has to hold an item for the buyer who is mid-payment without ever stranding it if they abandon the flow.

Checkout reserves inventory server-side and hard-rejects with a 409 if any item in the cart is already sold or held by another buyer's fresh order. Payment goes through Yoco, whose webhook is signature-verified with a constant-time comparison and a replay window, and is idempotent.

The frontend is a React and Vite SPA with guest and authenticated checkout, coupons, and Google Places address autocomplete; Resend handles transactional email. Everything runs self-hosted on a single VPS — nginx serves the built SPA and proxies to PocketBase container.

Highlights

  • Every piece is one of a kind, so stock is reserved the moment a checkout begins — two buyers can never end up with the same item

  • Self-hosted end to end, with a staging environment that mirrors production and deploys that run themselves

Stack

React
TypeScript
Chakra UI
PocketBase
Yoco

Links

Build 2026.07 · Johannesburg, ZA