Develop ERPIn production since 2024
One ERP, 150 companies, no downtime.
How I built and run the Develop Sistemas business system: web, Windows and iPhone on the same API, with every company isolated in its own database schema.

- React
- Node.js
- Express
- MySQL · Azure
- Tauri · Rust
- React Native · Expo
Dozens of companies stuck on an old, slow, third-party ERP with 160+ screens, unable to stop selling during the switch.
I wrote most of the new system: one API for web, Windows and iPhone, with each company in its own database schema.
The switch happens screen by screen, with the old system live and no data migration. The ERP has run in production since 2024.
Source ¹
Measured on Oct 31, 2026 on the ERP repository (git rev-list --count; git grep for router.get/post/put/patch/delete in api/src; files in api/src/routes).
Source ¹
Measured on Oct 31, 2026 on the ERP repository (git rev-list --count; git grep for router.get/post/put/patch/delete in api/src; files in api/src/routes).
Source ²
Schema count on the MySQL server on Oct 9, 2026; includes internal and system schemas.
- Role
- Founder and engineer: architecture, API, UI, apps, deployment
- Period
- 2024 → today, in production
- Stack
- React · Node.js · Express · MySQL (Azure) · Tauri/Rust · React Native/Expo · Vercel · Railway
- Numbers
- 16,514 commits¹ · 5,120 API routes¹ · 345 route files¹ · ~90 schemas on the server²
The problem
Manufacturers, distributors, optical stores and retailers ran on an old ERP built in Appsmith, with more than 160 screens: slow, hard to change and locked into a third-party platform. They could not stop selling during the switch, and the database already held dozens of live customers, all with the same table layout.
My role
I founded Develop and I write most of the code: architecture, API, web screens, the Windows app, the iPhone app, deployment and second-line support. I work with a small team and use AI agents as pair programmers, with written rules for what must never happen without an explicit request, such as changing the structure of the shared database.
The architecture
- Three clients, one API. The browser (React + Vite, on Vercel), the Windows app (Tauri) and the iPhone app (Expo) talk to the same Node + Express API, on Railway.
- The login carries the company. The token holds the customer's schema, and every query runs inside it.
- One MySQL server on Azure, one schema per company, SSL required.
- Integrations for invoicing (Focus NFe), WhatsApp, payments (Asaas, Pagar.me) and Brasil API.
Three decisions, and why
1. One database schema per customer, on the same server
BecauseCustomers already lived this way; merging would stop everyone, and isolation comes from structure.
CostA shared server: structural changes only on explicit request, a written rule even for AI agents.
Read more
Customers already lived this way in the old system. Merging everyone into one database, with a company column on every table, would mean migrating and stopping all of them. Keeping one schema per customer makes isolation structural rather than a filter someone can forget: one company cannot see another because the query never runs in its schema.
2. The sale is born on disk (offline POS)
BecauseWhen the internet drops the register cannot stop, and resending cannot charge twice.
CostA local catalog on the register and a badge for what has not uploaded yet.
Read more
When the internet drops, the register cannot stop. In the Windows app every sale is first written to an append-only journal with fsync, in Rust; then it joins a queue that an agent sends every 90 seconds. Each sale keeps the official number the server gave it, and before closing again the register checks whether it was already finalized: resending never charges twice. Online and synced sales go through the same write function, so there are never two sets of sales rules.
Details in the offline POS case study.
3. Replace the old system screen by screen, while it stays live
BecauseA big-bang switch would stop dozens of companies on the same day.
CostLiving with legacy column names instead of redesigning the database.
Read more
A big-bang switch would stop dozens of companies on the same day. Each new screen reads the same tables, with the exact names of the real schema, and customers move to it when it is ready. Old and new run side by side with no data migration.
What went wrong: 13 modules denying access
- Releasean access check goes in without a path (
router.use()) - Symptom13 modules answer "access denied", with another module's message
- 1h30until the cause was found and the fix shipped
What stayed: An automated test blocks that pattern before any release.
What I would do differently
- Split routes by module from day one: some files grew past 500 KB.
- Write the tests before growing, not after.
- Versioned database migrations instead of hand-reviewed scripts.