// case study 06 · multi-tenant & b2b
Agency Operations OS
Internal operating system for a software agency: CRM, project delivery, engineering ops and finance, with a client portal.
- role
- Full-Stack Engineer
- context
- Software agency
- domain
- Multi-Tenant & B2B
- ships
- 2 apps & sites
- stack
- 5 technologies
// 01 / surfaces
What ships
Every app and site in the project.
01
Admin panel and client portal (Next.js)
02
Agency marketing site
// 02 / architecture
How it's built
NestJS on PostgreSQL with Sequelize, permission guards and audit interceptors
Separate roles for admins, project managers, developers, contractors, finance and clients, plus an encrypted credential vault
Domain events (milestone approved, invoice paid) and a daily invoice-reminder job
// 03 / challenges
Hard problems
- 01
Designed roles so staff, contractors and clients each see only their own projects and data.
- 02
Kept client credentials in an encrypted vault and automated invoice reminders from domain events.
// 04 / stack
Stack
- NestJS
- PostgreSQL
- Sequelize
- Next.js
- RBAC