Skip to content

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.

The admin dashboard: every open service order pinned to a shadow board by stage, with plates, customers and how long each has waited.
The same dashboard on a phone, stages stacked.
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.

  1. Received
  2. Diagnosing
  3. Awaiting approval
  4. In progress
  5. Finished
  6. Delivered
If the customer says no
  1. Awaiting approval
  2. Rejected
  3. Delivered
The service order’s stages: received, diagnosing, awaiting approval, in progress, finished, delivered. A rejected quote goes from awaiting approval to rejected, then delivered.
A service order in progress: the six stages, the next action asking for the real minutes spent on each service, and the itemized quote.
Every order shows where it is and the one thing it needs next. Finishing asks the mechanic for the real minutes spent on each service, and that feeds the catalog: a service’s estimated duration is a running average that updates every time an order closes.

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.

The same dashboard on a phone, stages stacked.
A customer tracking their order on a phone: the stage, the diagnosis and the itemized quote.
The board from the shop floor, and the customer checking on their car. Every flow works on a phone.

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 pipeline: GitHub Actions builds, tests and pushes an image to GHCR; a runner on the Azure VM deploys it to k3s and applies the schema to Azure SQL.

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: Domain references nothing, Application has 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.