Skip to content
Back to featured work

Milo

Multi-tenant municipal SaaS

Stack
  • Next.js
  • TypeScript
  • PostgreSQL
  • Prisma
  • Chart.js
  • Microsoft Graph
My role
Owned the full redesign and data migration, from planning through production.

The problem

Milo started as a pet licensing app built for a single client, on a legacy data model that was hard to extend. Adding new features was slow, and every new municipality needed its own setup. We needed a platform that could grow into broader areas like permit management and serve many municipalities from one codebase.

Key decisions

Multi-tenant from the start
Redesigned the data model so one platform serves many municipalities, each with its own instance, data and settings.
A configurable workflow engine instead of hardcoded requests
Built a flexible model of cases, workflows, states, transitions, steps and actions, so new processes (like permits) can be added through configuration instead of new code.
Plan the migration at the design stage
Mapped messy fields and broken relationships in the old data before writing the new schema, so the move was smooth and no existing features were lost.

What I built

  • Workflow management with division-scoped staff permissions
  • Real-time notifications and live data updates
  • Chart.js dashboards (task status, completion rates, workload by department, activity over time)
  • Cron jobs for AI actions, checks and alerts
  • Email and SMS integration (Microsoft Graph, SMS provider)
  • Onboarding pipeline that cleans and maps each municipality's existing records into the Milo model with SQL, including finding and merging duplicates

Outcome

  • Migrated tens of thousands of records with no lost features
  • Added new capabilities on top: workflow engine, time tracking, task system
  • Serves about 2,000 active users
  • New municipalities can be onboarded onto the same platform

Architecture

  1. Resident and staff web app (Next.js)
  2. API routes and services
  3. PostgreSQL via Prisma (multi-tenant)
  4. Background cron jobs
  5. Email (Microsoft Graph) and SMS notifications

How I used AI

I treat AI coding tools (Claude Code, Cursor) like a junior developer: I set the architecture, layers and rules, let the agent draft routine code, and review everything with tests, type checks, ESLint and code review.