A dairy-commodity export and trade-finance firm ran its entire operation — deals, purchase orders, shipments, inventory, invoicing and accounting — on a fragile, fifteen-year-old codebase held together by copied files. We replaced it with a modern, fully tested platform, delivered by a two-person team in about eleven months by putting AI at the center of how we work.
The business it ran was genuinely complex: international dairy deals with multi-currency pricing, foreign-exchange hedging, export-credit coverage, shipment logistics, and a long tail of generated trade documents — commercial invoices, certificates of origin, certificates of analysis, packing lists. All of it lived in roughly 58,000 lines of hand-written procedural PHP with no framework, no router, and no separation between database code, business rules and HTML.
The deeper problem wasn't the size — it was that the code had become dangerous to touch. A few markers of where it stood:
test.php, test2.php and deal_test.php were scratch pages, not a test suite.config_bkp.php, export_deal - Copy.php, and a backup/ folder full of date-stamped snapshots. The entire repository was a single squashed commit.We rebuilt the system as a single modern application: Laravel 12 and PHP 8 on the backend, a React and TypeScript front end over Inertia, and PostgreSQL in place of the old SQL Server. The three disconnected runtimes collapsed into one codebase with clear internal boundaries — a service layer per domain, typed models and enums, background jobs, role-based access control, and full audit trails on the records that matter.
A rebuild of this scope — a complete trading ERP with live accounting integration — is conventionally a team-of-five, eighteen-to-twenty-four-month project. Two engineers delivered it in roughly eleven months because AI was woven through the entire workflow, not bolted on at the end.
Concretely, AI did the work that usually needs more hands:
This is what we mean by software that builds software: the how is our edge, and it compounds. The same leverage that let two people replace a fifteen-year-old system is what we bring to every engagement.
The business moved off a system that was a liability — un-testable, un-auditable, with live secrets sitting in source control — onto one that can be extended with confidence. The delivery economics tell the rest of the story.
Team-size and timeline comparisons are informed estimates based on the delivered scope (~124k lines, 77 domain models, live accounting integration), not a controlled measurement. Repository figures — tests, lines, timeline, commits — are drawn directly from the codebases.
Whether it's a legacy rebuild or something that doesn't exist yet, we'd like to hear about it. Thirty minutes with the team is enough to show you how fast it can be real.