How kaz0342/ta works
Smart Shroom SCM manages baglog inventory and spatial rack allocation through harvest, sales, and dynamic HPP accounting, while monitoring and automating kumbung climate. The React SPA is the user entry point; its Laravel API handles business operations and persists domain records, and the IoT simulator is a separate edge-behavior model. The README documents key capabilities, but several controller/service implementations and all firmware source are absent from the supplied tree, so uncertain connections are omitted or marked unverified.
Main entry points: api.php API routing · App.tsx React application · api.ts API client · SensorDataController.php Climate and device API
Components 22
User application
- React application
frontend/src/App.tsx - Live dashboard
frontend/src/pages/Dashboard.tsx - Baglog management
frontend/src/pages/BaglogManagement.tsx - Rack grid and harvest map
frontend/src/pages/KumbungGrid.tsx - Harvest management
frontend/src/pages/HarvestManagement.tsx - Sales management
frontend/src/pages/SalesManagement.tsx - Climate settings
frontend/src/pages/Settings.tsx - API client
frontend/src/services/api.ts
Cultivation operations
- API routing
backend/routes/api.php - Baglog lifecycle
backend/app/Services/BaglogService.php - Rack allocation
backend/app/Http/Controllers/Api/BatchSlotAssignmentController.php - Spatial rack data
backend/app/Http/Controllers/Api/SlotController.php - Cull ledger
backend/app/Http/Controllers/Api/BaglogCullController.php
Climate monitoring
- Climate and device API
backend/app/Http/Controllers/Api/SensorDataController.php - Sensor history queries
backend/app/Repositories/SensorDataRepository.php - Climate thresholds
backend/app/Models/ThresholdSetting.php - IoT simulator
iot_simulator.py
Harvest and supply chain
- Harvest records
backend/app/Services/HarvestService.php - Sales and HPP
backend/app/Services/SaleService.php - Dashboard aggregation
backend/app/Services/DashboardService.php - Operational records
backend/app/Models/BaglogBatch.php
Other components
- Admin or worker
Connections 28
- Admin or worker → React application: uses
- React application → Live dashboard: routes to
frontend/src/App.tsx - React application → Baglog management: routes to
frontend/src/App.tsx - React application → Rack grid and harvest map: routes to
frontend/src/App.tsx - React application → Harvest management: routes to
frontend/src/App.tsx - React application → Sales management: routes to
frontend/src/App.tsx - React application → Climate settings: routes to
frontend/src/App.tsx - Live dashboard → API client: requests data
- Baglog management → API client: requests data
- Rack grid and harvest map → API client: requests data
- Harvest management → API client: requests data
- Sales management → API client: requests data
- Climate settings → API client: requests data
- API client → API routing: calls API
- API routing → Baglog lifecycle: routes requests
backend/routes/api.php - API routing → Rack allocation: routes requests
backend/routes/api.php - API routing → Spatial rack data: routes requests
backend/routes/api.php - API routing → Cull ledger: routes requests
backend/routes/api.php - API routing → Climate and device API: routes requests
backend/routes/api.php - API routing → Harvest records: routes requests
backend/routes/api.php - API routing → Sales and HPP: routes requests
backend/routes/api.php - API routing → Dashboard aggregation: routes requests
backend/routes/api.php - Climate and device API → Sensor history queries: queries readings
- Climate and device API → Climate thresholds: uses limits
- IoT simulator → Climate and device API: submits readings
- Spatial rack data → Operational records: reads records
- Harvest records → Operational records: records harvest
backend/app/Services/HarvestService.php - Sales and HPP → Operational records: calculates HPP