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
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.
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.
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.
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