03 / 25SaaS / Multi-tenant ERP

Mi Negocio

Visit the site

Directory + back office

Sector
Multi-tenant SaaS (ERP + marketplace)
Client
Bemorex (in-house product)
Role
Solutions Architect, Tech Lead and sole developer
Year
2026
Mi Negocio — Directory + back office

Multi-tenant SaaS: a directory of ~130,000 businesses plus an ERP with Bolivian fiscal invoicing

The project

The agency's own SaaS product: one platform with two faces over a single database. A public directory/marketplace of ~130,000 real Bolivian businesses (search, map, favourites, cart) and a multi-tenant "Mi Negocio" back office where each small business claims its listing and runs a full commercial ERP (catalogue, inventory, purchasing, sales/POS, bookings and fiscal e-invoicing).

The Challenge

Giving a Bolivian small business both a digital presence and operational tooling in a single subscription product required a multi-tenant back office with strict per-tenant isolation, Bolivian fiscal compliance (SIAT/SIN), advanced inventory and semantic search across ~130,000 businesses — all under the principle that the backend leads and the frontend follows.

What We Built

We designed and built end to end a modular monolith in .NET 10 (15 domain modules, four-layer Clean Architecture, DDD, CQRS with a custom pipeline, GraphQL-first) with global-filter multi-tenancy and a transactional Outbox pattern, plus an Angular 22 SSR frontend. We built a hybrid search engine (Spanish FTS + RRF + Gemini query rewriting) and designed and validated a vector search engine (pgvector + Gemini + HNSW), which became the basis of a FLISOL 2026 talk. We ran the full DevOps cycle on Cloud Run + Supabase.

  1. Directory of ~130,000 Bolivian businesses with map and search
  2. SIAT/SIN e-invoicing with a hash-chained fiscal log
  3. pgvector + Gemini vector search (3072-d, HNSW); 130K backfill for ~$5
  4. Hybrid lexical ⊕ vector engine fused with RRF
  5. 15 domain modules, ~3,638 backend .cs / ~3,134 frontend .ts files
  6. Speaker at FLISOL 2026 on vector search architecture

Stack

.NET 10C# 14EF Core 10PostgreSQL 18Hot Chocolate GraphQL 15pgvectorAngular 22 SSRApollo Client 4NgRx SignalsBunGoogle Cloud RunSupabaseFirebase App HostingCloudflare R2Gemini Embedding 2 / 2.5 Flash-Lite
Next project →Kairos

Have something similar in mind?

Tell us what you need: we look at it together and propose a way forward in writing, in English or Spanish.

[email protected]