Skip to content
Luiz Felipe
All projects

Case study2026

Átrio ERP

Internal system for Átrio Imóveis, a real estate agency, built from scratch: contracts and finance ERP, team kanbans, rental and sales CRMs and owner payout management, used by the team every day.

Period
May 2026 — present
Role
Systems developer at Átrio Imóveis, on the team building the system from scratch: architecture, back end, front end and integrations.
Status
In progress
Stack
10 technologies
fig. 1 — Four modules of the system in the dark theme: ERP dashboard, maintenance kanban, sales CRM and management
fig. 2 — Home screen in the dark theme with the five modules: ERP, Kanbans, Rental CRM, Sales CRM and Management
Chapter 1

What it is

Átrio ERP is the internal system of Átrio Imóveis, a real estate agency in Poços de Caldas, Brazil. It brings together what the team does every day: managing rental contracts, invoicing and paying out rent, handling maintenance tickets, following rental and sales leads and closing the month's accounts.

It is not an off-the-shelf product. It is a tool made for the agency's real teams and workflows, and it is being built from scratch, module by module, while the team already uses what is ready. The project is still in progress.

fig. 3 — Home screen in the dark theme: the modules react on hover and the ERP opens with its animated dashboard
fig. 4 — The same home screen in the light theme
Chapter 2

Goal

The agency's routine was spread across spreadsheets, chats and an off-the-shelf ERP that did not follow how each team really works. It was hard to know what was pending, who was responsible and how much would be paid out to owners at the end of the month.

fig. 5 — ERP dashboard with new contracts, portfolio status, guarantees, insurance, adjustments and due dates
fig. 6 — Contract profile with term, parties, amounts, guarantee and financial summary
Chapter 3

How it was built

The system grew from inside the operation: each module was designed from a team's real workflow, talking to the people who use it every day. The back end is an Express API with a self-hosted PostgreSQL database on a VPS, Zod validation for every input and services split by domain (contracts, invoices, payouts, leads, tickets). The front end is a React SPA built with Vite on a documented design system, with light and dark themes. Report and document PDFs are generated on the server, and spreadsheets and Word files come straight out of the system. The code is private, and every screen shown here uses fictional data generated for this portfolio.

fig. 7 — Contract list with guarantee, rent, management fee and status
fig. 8 — Batch invoice generation for the month, with a queue and a dry run before generating
Chapter 4

Features

  • Contracts, properties and clients ERP with a full profile for each: term, parties, guarantees (guarantor, deposit, rent guarantee insurance), fire insurance and index-based rent adjustment.
  • Finance with batch generation of the month's invoices, receipts, owner payouts, payments, property tax control and PDF bank statement import for reconciliation.
  • Kanbans for eight teams, with SLA counted in business days, comments, mentions, procedures and a management view with indicators by team and ticket type.
  • Rental CRM with lead tracking, screening, source, wanted neighborhoods and price range, plus property visits with key pickup and return.
  • Sales CRM with leads per broker, client potential, a follow-up kanban and a weekly report with an executive summary and Word export.
  • Management with the month's revenue, expenses and balance, next month's forecast, reconciled payouts, delinquency, rent adjustments, accounts payable and monthly closing.
  • Sync with the Superlógica ERP and a step-by-step database migration from Firestore to PostgreSQL while the system stayed in use.
  • JWT login in an httpOnly cookie, CSRF protection, login rate limiting, role-based permissions and an auditable history for every ticket.
  • Node.js
  • Express
  • PostgreSQL
  • React
  • Vite
  • Zod
  • JWT
  • Puppeteer
  • ExcelJS
  • Docx
fig. 9 — Owner profile with contracts, properties and rent under management
fig. 10 — ERP report center with contracts, total rent and management fees
fig. 11 — A ticket dragged from New to In Progress on the maintenance kanban, with the moved-ticket notice and the detail panel sliding in
fig. 12 — Maintenance team kanban with tickets by column, priority and SLA
fig. 13 — Ticket detail with owner, dates and team comments
fig. 14 — Kanban management view, with tickets by team and type
fig. 15 — The eight operational teams with their open ticket counts
fig. 16 — Rental CRM dashboard with screening, source and wanted property type
fig. 17 — Rental lead tracking with area, property, price range and screening
fig. 18 — Today's visits with keys out and returns
fig. 19 — Sales CRM dashboard with stages, source, brokers, financing and potential
fig. 20 — Weekly follow-up report with executive summary and hot leads
fig. 21 — Switching themes on the management dashboard, with the circular transition between light and dark
fig. 22 — Management dashboard with revenue, expenses, balance and next month's forecast
fig. 23 — Monthly owner payouts per contract, with received, expected and status
fig. 24 — The agency's accounts payable by category, with payment method and date
fig. 25 — Brokers' follow-up kanban, with leads by stage and potential