DB Courier
Role
Design, full-stack development and architecture
Type
Business website & tracking system
Stack

Website and operations system for a USA-to-Peru import courier, live at dbgroup.com.pe: instant quotes, order registration, package tracking and an internal panel for orders, settlements and finance.
ResultCompleted and handed over to the client; live at dbgroup.com.pe.
The challenge
The business ran on a Google Sheet: every order was typed in by hand after a WhatsApp chat, public tracking read the whole sheet through Apps Script, and sequential order numbers let anyone scrape the customer list. It had to move to a real backend without interrupting the service.
What I built
I wrote an architecture diagnosis and migrated with the Strangler Fig pattern: the front end was already decoupled behind one data adapter, so a new API with the same JSON contract replaced the sheet with a one-line config switch and instant rollback. Today a framework-free site and panel talk to 12 Netlify Functions in front of Supabase PostgreSQL, with private document storage, a state machine with full history, server-side settlements and role checks enforced in two layers.










Highlights
- 01Completed and in production at dbgroup.com.pe
- 02Migrated from Google Sheets + Apps Script to its own API with the Strangler Fig pattern, without downtime
- 03Anti-enumeration tracking: non-guessable codes, optional ID as second factor, rate limiting
- 04Two-step order intake with uploads to a private bucket through signed URLs
- 05State machine validated against a catalog, with a full history of who changed what
- 06Settlements computed on the server with configurable rates and a printable sales note
- 07Two-layer authorization (RLS + role check in every function) and an audit log
