Skip to content
All work

Work 08 / 10

Etalase UMKM

A SaaS for Indonesian small businesses: product catalog, a Google-indexable storefront, and order tracking that works alongside WhatsApp instead of replacing it.

Type
Personal project
Stage
Finished, not yet released
Stack
Go · Chi · PostgreSQL · sqlc · Goose · Next.js · TypeScript · TanStack Query · OpenAPI · Docker

Case study

The problem, and how I answered it.

01 · Challenge

Many small businesses sell through WhatsApp, where orders slip through, repeat customers go unrecognised, and the shop can't be found on Google. Existing tools force a choice: a WhatsApp catalog that records nothing, or a point-of-sale app far too heavy for a business without a physical store.

02 · Approach

Buyers order from the merchant's public page; the order is recorded on the server first, then the buyer is handed to WhatsApp with a pre-filled message, so merchants keep closing the way they already do. A single Go deployable with module boundaries enforced by packages, PostgreSQL as the only store, and explicit SQL via sqlc. Daily order numbers are computed in the business's own timezone and locked in the database so concurrent orders never collide. Orders keep their own copy of price and product name, guarded by a test that raises catalog prices and requires order history to stay unchanged. Storefronts snapshot only the layout; prices and stock are rebuilt automatically by database triggers whenever they change.

03 · Tech stack

  • Go
  • Chi
  • PostgreSQL
  • sqlc
  • Goose
  • Next.js
  • TypeScript
  • TanStack Query
  • OpenAPI
  • Docker