← All workCase study 4 of 4
LiveClient · e-commerce

Shishu Mela

A storefront and operations admin for a children's products shop that sells through Facebook and TikTok ads, built on Cloudflare Workers for a paying client.

Role
Solo, for a paying client
Status
Live since August 2026
Tests
~221 automated, in CI
Hosting
Cloudflare Workers
The problem

Ads bring the buyers; the store has to keep up.

The shop needed a fast mobile store, cash-on-delivery checkout, an admin that keeps up with order volume, and ad tracking it could trust.

What it does

Store, admin and growth tools.

  1. 01Checkout

    Server-priced cash-on-delivery checkout with idempotency keys and row-locked stock.

  2. 02Operations

    Risk flags, courier assignment, refunds, invoices and an audit log.

  3. 03Growth

    A landing-page builder for ad campaigns and first-party funnel analytics.

  4. 04Tracking

    Meta and TikTok server-side conversion tracking.

Architecture

Correct under double clicks.

StorefrontNext.js on Cloudflare Workers
AdminOrder operations and campaign tools
CheckoutIdempotency keys, row-locked stock, prices computed on the server
PostgreSQLDrizzle ORM
OutboxA transactional outbox processed by cron
Ad platformsMeta and TikTok server-side events
Checkout is idempotent and stock is locked per row; side effects leave through an outbox.
Key decisions

Where the engineering went.

  1. 01

    Idempotent checkout

    A double-click plus a refresh still creates exactly one order.

  2. 02

    A transactional outbox

    Ad events and notifications are written with the order and sent by cron, so none are lost or doubled.

  3. 03

    Tests before features

    About 221 automated tests run in CI on every change.

Where it stands

In production.

live since
Aug 2026
automated tests
~221
every change tested before it ships
CI

No sales, revenue or traffic figures are claimed.

Screenshots

The store is public: shishumela.site.

Next.js 15React 19TypeScriptPostgreSQLDrizzle ORMCloudflare WorkersMeta Conversions APIVitest / Playwright