How idtdanny/ubucuruzi works
Ubucuruzi ERP is a multi-tenant business management application. Users register or sign in, then work through dashboard and business-record screens; authenticated backend controllers delegate operations to domain services, which use Prisma for persistence. The tree also documents purchasing, invoicing, quotations, product imports/exports, and customer/supplier management. Backend call edges are grounded in controller excerpts and source-index references; frontend-to-API links are left unverified because the sampled frontend files do not show those calls.
Main entry points: api-client.ts API client · prisma.service.ts Prisma data access · app ERP screens · (auth) Sign-in and registration
Components 26
Web application
- ERP screens
packages/frontend/src/app - API client
packages/frontend/src/lib/api-client.ts - Sign-in and registration
packages/frontend/src/app/(auth) - Dashboard screens
packages/frontend/src/app/(dashboard)/dashboard
Identity and access
- Authentication
packages/backend/src/auth/auth.service.ts - User profile
packages/backend/src/users/users.service.ts - Role access
packages/backend/src/roles/roles.controller.ts
Business operations
- Customers
packages/backend/src/customers/customers.service.ts - Suppliers
packages/backend/src/suppliers/suppliers.service.ts - Products and stock
packages/backend/src/products/products.service.ts - Product categories
packages/backend/src/categories/categories.service.ts - Quotations
packages/backend/src/quotations/quotations.service.ts - Invoices
packages/backend/src/invoices/invoices.service.ts - Purchase orders
packages/backend/src/purchase-orders/purchase-orders.service.ts - Customer endpoints
packages/backend/src/customers/customers.controller.ts - Supplier endpoints
packages/backend/src/suppliers/suppliers.controller.ts - Product endpoints
packages/backend/src/products/products.controller.ts - Category endpoints
packages/backend/src/categories/categories.controller.ts - Quotation endpoints
packages/backend/src/quotations/quotations.controller.ts - Invoice endpoints
packages/backend/src/invoices/invoices.controller.ts - Purchase endpoints
packages/backend/src/purchase-orders/purchase-orders.controller.ts
Reporting
- Business metrics
packages/backend/src/dashboard/dashboard.service.ts - Dashboard endpoints
packages/backend/src/dashboard/dashboard.controller.ts
Persistence
- Prisma data access
packages/backend/src/prisma/prisma.service.ts - PostgreSQL
Other components
- Business user
Connections 33
- Business user → ERP screens: uses
- ERP screens → Sign-in and registration: opens
- ERP screens → Dashboard screens: opens
- Sign-in and registration → API client: requests
- Dashboard screens → API client: requests
- API client → Authentication: calls API
- API client → Customer endpoints: calls API
- API client → Supplier endpoints: calls API
- API client → Product endpoints: calls API
- API client → Category endpoints: calls API
- API client → Quotation endpoints: calls API
- API client → Invoice endpoints: calls API
- API client → Purchase endpoints: calls API
- API client → Dashboard endpoints: calls API
- Customer endpoints → Customers: delegates
packages/backend/src/customers/customers.controller.ts - Supplier endpoints → Suppliers: delegates
packages/backend/src/suppliers/suppliers.controller.ts - Product endpoints → Products and stock: delegates
packages/backend/src/products/products.controller.ts - Category endpoints → Product categories: delegates
packages/backend/src/categories/categories.controller.ts - Quotation endpoints → Quotations: delegates
packages/backend/src/quotations/quotations.controller.ts - Invoice endpoints → Invoices: delegates
packages/backend/src/invoices/invoices.controller.ts - Purchase endpoints → Purchase orders: delegates
packages/backend/src/purchase-orders/purchase-orders.controller.ts - Dashboard endpoints → Business metrics: delegates
packages/backend/src/dashboard/dashboard.controller.ts - Authentication → Prisma data access: reads and writes
packages/backend/src/auth/auth.service.ts - Customers → Prisma data access: uses
packages/backend/src/customers/customers.service.ts - Suppliers → Prisma data access: uses
- Products and stock → Prisma data access: uses
packages/backend/src/products/products.service.ts - Product categories → Prisma data access: uses
packages/backend/src/categories/categories.service.ts - Quotations → Prisma data access: uses
packages/backend/src/quotations/quotations.service.ts - Invoices → Prisma data access: uses
packages/backend/src/invoices/invoices.service.ts - Purchase orders → Prisma data access: uses
packages/backend/src/purchase-orders/purchase-orders.service.ts - Business metrics → Prisma data access: uses
packages/backend/src/dashboard/dashboard.service.ts - Role access → Prisma data access: queries
packages/backend/src/roles/roles.controller.ts - Prisma data access → PostgreSQL: connects
packages/backend/src/prisma/prisma.service.ts