How kaula201/business-os works
Business OS is a multi-tenant ERP for Georgian businesses, with a React client and FastAPI API backed by PostgreSQL. The principal workflow is a user opening a protected business module, making requests through the frontend API client, and receiving results from the corresponding backend endpoint. The documented product spans finance, sales/CRM, procurement and inventory, people operations, fleet, reporting, and AI. The excerpts show API routing, database session setup, and selected payroll/task/client behavior; links among unsampled domain modules are therefore omitted or marked unverified.
Main entry points: router.py API router · database.py Tenant DB sessions · App.tsx Web application · api.ts API client
Components 20
Web client
- Web application
frontend/src/App.tsx - API client
frontend/src/services/api.ts - ERP screens
frontend/src/pages
API and access
- FastAPI app
backend/app/main.py - API router
backend/app/api/v1/router.py - Authentication
backend/app/api/v1/endpoints/auth.py
Business operations
- CRM and clients
backend/app/api/v1/endpoints/crm.py - Tasks
backend/app/api/v1/endpoints/tasks.py - Finance
backend/app/api/v1/endpoints - Sales and orders
backend/app/api/v1/endpoints - Procurement
backend/app/api/v1/endpoints - Inventory and WMS
backend/app/api/v1/endpoints - HR and payroll
backend/app/api/v1/endpoints/payroll_engine.py - Fleet and TMS
backend/app/api/v1/endpoints - Reports and AI
backend/app/api/v1/endpoints
Shared platform
- Domain models
backend/app/models - Tenant DB sessions
backend/app/core/database.py - Tenant access
backend/app/core/dependencies.py
Other components
- Business user
- PostgreSQL
Connections 20
- Business user → Web application: uses
frontend/src/App.tsx - Web application → ERP screens: routes to
frontend/src/App.tsx - ERP screens → API client: requests data
frontend/src/pages/ClientsPage.tsx - API client → FastAPI app: sends API requests
- FastAPI app → API router: mounts routes
backend/app/main.py - API router → Authentication: registers
backend/app/api/v1/router.py - API router → CRM and clients: registers
backend/app/api/v1/router.py - API router → Tasks: registers
backend/app/api/v1/router.py - API router → Finance: registers
backend/app/api/v1/router.py - API router → Sales and orders: registers
backend/app/api/v1/router.py - API router → Procurement: registers
backend/app/api/v1/router.py - API router → Inventory and WMS: registers
backend/app/api/v1/router.py - API router → HR and payroll: registers
backend/app/api/v1/router.py - API router → Fleet and TMS: registers
backend/app/api/v1/router.py - API router → Reports and AI: registers
backend/app/api/v1/router.py - Tenant DB sessions → PostgreSQL: opens sessions
backend/app/core/database.py - Tenant access → Tenant DB sessions: uses sessions
backend/app/core/dependencies.py - Tasks → Tenant DB sessions: queries through
backend/app/api/v1/endpoints/tasks.py - HR and payroll → Tenant DB sessions: queries through
backend/app/api/v1/endpoints/payroll_engine.py - Tenant DB sessions → Domain models: loads model metadata
backend/app/core/database.py