How kikaiuto/csce4901-capstone works
Sector 7 AI is a multi-tenant ERP with customer, catalog, inventory, sales, procurement, accounting, reporting, AI assistance, and forecasting capabilities. The intended user workflow is through the addon-based frontend; today its screens use fixtures, while the backend provides authenticated, tenant-scoped read APIs and addon routing. Operational write services are described in the code but are not yet wired from frontend actions. The excerpts show sales and receiving workflows invoking inventory and accounting contracts. Unshown addon internals and frontend routes limit finer-grained flow claims.
Main entry points: loading.py Addon loader · contracts Service contracts · sales Sales orders · procurement Procurement and receiving
Components 17
Frontend experience
- Addon screens
frontend/src/addons - App shell
frontend/src/core/app - API client
frontend/src/core/lib/api.ts
Backend platform
- API application
backend/app/main.py - Addon loader
backend/app/core/modules/loading.py - Tenant security
backend/app/core/tenancy.py - Service contracts
backend/app/core/contracts - Relational database
backend/app/core/db.py
ERP operations
- Sales orders
backend/app/addons/sales - Inventory and catalog
backend/app/addons/inventory - Procurement and receiving
backend/app/addons/procurement - Accounting ledger
backend/app/addons/accounting
Insights and identity
- Identity and access
backend/app/addons/base - Home reporting
backend/app/addons/home - AI assistance
backend/app/addons/ai - Forecasting
backend/app/addons/forecasting
Other components
- ERP user
Connections 23
- ERP user → Addon screens: uses
README.md - Addon screens → App shell: renders in
- Addon screens → API client: uses
- API application → Addon loader: mounts routers
backend/app/main.py - Addon loader → Identity and access: mounts
- Addon loader → Sales orders: mounts
- Addon loader → Inventory and catalog: mounts
- Addon loader → Procurement and receiving: mounts
- Addon loader → Accounting ledger: mounts
- Addon loader → Home reporting: mounts
- Addon loader → AI assistance: mounts
- Addon loader → Forecasting: mounts
- Sales orders → Service contracts: uses contracts
backend/app/addons/sales/service.py - Sales orders → Inventory and catalog: requests stock
backend/app/addons/sales/service.py - Sales orders → Accounting ledger: posts sale
backend/app/addons/sales/service.py - Procurement and receiving → Inventory and catalog: records receipt
backend/app/addons/procurement/service.py - Procurement and receiving → Accounting ledger: posts receipt
backend/app/addons/procurement/service.py - Procurement and receiving → Service contracts: uses contracts
backend/app/addons/procurement/service.py - Home reporting → Service contracts: reads metrics
backend/app/addons/home/service.py - AI assistance → Service contracts: read-only access
README.md - Service contracts → Tenant security: binds session
backend/app/core/contracts/__init__.py - Tenant security → Relational database: scopes queries
backend/app/core/tenancy.py - Identity and access → Relational database: loads identity
backend/app/addons/base/service.py