June 2026 — Present · FIAP postgrad in Software Architecture
A car repair shop, run from one screen
My postgrad’s Tech Challenge: replace the notebooks and spreadsheets of a mid-sized repair shop with one flow, from the car arriving to the car leaving, where customers follow their order from their phone and approve the quote themselves.




- Tests
- 408
- Coverage
- 97.5%
- Bugs · vulns (Sonar)
- 0 · 0
- Pods under load
- 1–3HPA
The problem
The shop runs on paper. Orders get prioritized by whoever shouts loudest, parts run out without anyone noticing, the history of a car lives in someone’s head, and every quote means a phone call. The brief asked for a backend that fixes that, built with Domain-Driven Design and treated like production code: layered architecture, automated tests, JWT auth, and validation of the sensitive bits (CPF/CNPJ, license plates).
The service order is the product
Everything orbits one aggregate. A service order moves through a state machine, and each transition declares which states it can leave from, behind a single guard (EnsureCanTransitionTo) instead of six copies of the same check. The quote is built from the services and parts the mechanic adds during diagnosis, which reserves stock; approval consumes it for real.
- Received
- Diagnosing
- Awaiting approval
- In progress
- Finished
- Delivered
- Awaiting approval
- Rejected
- Delivered


The customer’s decision on the quote arrives through a webhook from an external system, authenticated by API key, and nobody at the shop approves on the customer’s behalf. Every status change emails the customer. Around the order sit the supporting contexts: customers and vehicles (a customer with cars can’t be deleted, a plate never changes) and parts whose stock only moves through reservations.
A screen for every role
The frontend is Next.js with a screen per role: the admin’s board, the attendant’s queue, the mechanic’s work list. Customers get a public page where their document and plate show the stage, the diagnosis and the itemized quote, without that page ever revealing whether a customer or car exists. The browser only talks to a server-side proxy, so tokens never leave httpOnly cookies.




Running it like a real system
Phase 2 asked for the same app to scale and deploy itself. I provisioned everything on Azure with Terraform: a VM running k3s, a managed Azure SQL database that pauses when idle, and a firewall that only lets SSH in from my IP. A merge into release runs the pipeline.
GitHub Actions · on merge to release
BuildUnit testsIntegration testsDocker imageGHCR
Azure VM · k3s
Traefik ingressAPI, 1 to 3 pods, scaled by an HPA on CPU and memory
Azure SQL
Schema and seed applied by a self-hosted runner on the VM
The deploy job runs on a GitHub runner inside the VM: it applies the schema, applies the Kubernetes manifests and checks the health endpoints before calling it done. The demo video shows the autoscaler adding pods under a k6 load test.
Quality as a requirement
- Clean Architecture with the dependency rule enforced:
Domainreferences nothing,Applicationhas no EF Core or ASP.NET. - Unit tests on Domain and Application, integration tests against a real SQL Server in Docker: 97.5% coverage on SonarQube Cloud, against a target of 80%.
- CodeQL and SonarQube on every run. The medium findings (log forging, sensitive data in logs) were fixed, not suppressed.
- Refresh tokens with rotation, BCrypt at work factor 12, role policies for admin, attendant and mechanic.
What’s next
Phase 3 takes it to multiple shops: an API gateway, a serverless function that authenticates customers by CPF and issues the JWT, the database and the cluster in their own repositories with their own pipelines, and monitoring to catch bottlenecks as they happen.