Toko Platform
Single-seller commerce monorepo: storefront, admin portal, courier portal and an Android app.
Summary
A household-goods and building-materials retailer taken online: a catalogue API, a storefront, three back-office portals and a Flutter app, sharing one Prisma schema and one product catalogue.
Metrics
The problem
- !The business sold in units, packs and sacks at different prices depending on quantity, and none of that was written down anywhere a system could read.
- !An online storefront alone would have been useless — orders still had to reach an admin and a courier.
- !Running without Docker was a hard constraint from the client's environment.
Approach
What I actually changed, and why.
- 01
Catalogue first, storefront second
A read-only catalogue API with real tiered pricing — unit, pack and sack — seeded from the client's actual product list, including wholesale tiers.
- 02
One monorepo, four surfaces
Storefront, admin, courier portal and mobile app share a single workspace, Prisma schema and type definitions, so a pricing change lands everywhere at once.
- 03
Graceful degradation by design
If the catalogue API is unreachable the storefront falls back to seeded fixtures and labels itself as preview mode, rather than showing an empty shop.
- 04
Background work off the request path
Order notifications and stock jobs run through BullMQ on Redis in a separate worker process, so a slow job never blocks a customer.
Outcome
- ✓118 products across 13 categories online with real unit/pack/sack pricing and wholesale tiers.
- ✓Orders flow from storefront to admin to courier without leaving the platform.
- ✓Runs without Docker, as the client required.
- ✓Deployed and in use at SuksesBangun Mart.
Gallery
4 items
Stack
Tags
toko-platform