What it is
A campaign-management system for the out-of-home advertising market across Australia and New Zealand: inventory, bookings, and the pricing that sits underneath them.
The hard part was the domain: layered business calculations, a long tail of edge cases, and scenarios that had to stay correct and auditable as campaigns were revised.
What I built
- Worked through the migration of the backend to NestJS, applying enterprise patterns (repository, strategy, factory method, CQRS and observer) to keep the domain logic maintainable as it grew.
- Moved the data layer from Prisma to TypeORM for first-party NestJS support and entity-based design that made those patterns far easier to express.
- Laid the groundwork for a SaaS conversion with database-per-tenant isolation, so multiple agencies could each run the platform independently.
How it ended
Deployed and under active development throughout my time on it, with the multi-tenant architecture in place for the productisation phase.
What I took away
- CQRS, the repository pattern and factory methods were all new to me here. They were hard to get comfortable with, and they ended up being the part of the project I enjoyed most.
- Prisma was pleasant to use, but TypeORM was the one that made the patterns and the tenancy model expressible, so picking the ORM turned out to be an architecture decision.
- Complex business rules need a structure that isolates them. Otherwise every edge case gets paid for twice: once in the code, and again in every later change.

