How xtrpate/spiralwood works
WISDOM is a furniture-commerce and operations system: customers browse and order standard or custom furniture, while staff and administrators manage production, inventory, fulfillment, and business operations. The tree shows customer, POS, admin, blueprint-design, and reporting capabilities; sampled source confirms the server’s route mounting, task API dispatch, and selected database and service interactions. Most other subsystem connections are inferred only at the product-capability level, so their internal wiring is not expanded.
Main entry points: App.jsx Web application · orderController.js Order management · pos.tasks.js Task API routes · db.js Application database
Components 32
Customer commerce
- Product catalog
admin/frontend/src/pages/customer/productcatalog.jsx - Cart and checkout
admin/frontend/src/pages/customer/checkoutpage.jsx - Customer orders
admin/frontend/src/pages/customer/orderspage.jsx - Furniture AR
admin/frontend/src/pages/customer/ar/ARViewPage.jsx
Blueprint design
- Blueprint editor
admin/frontend/src/pages/blueprints/BlueprintDesign.jsx - Estimation and contracts
admin/frontend/src/pages/blueprints/EstimationPage.jsx - Blueprint exports
admin/frontend/src/pages/blueprints/export
Staff operations
- Production tasks
admin/frontend/src/pages/tasks/TasksPage.jsx - Staff task view
admin/frontend/src/pages/staff/MyTasks.jsx - POS fulfillment
admin/frontend/src/pages/staff/DeliveryManagement.jsx - Inventory management
admin/frontend/src/pages/inventory
Backend platform
- HTTP and socket server
admin/backend/server.js - Customer API routes
admin/backend/routes/customer.orders.js - Task API routes
admin/backend/routes/pos.tasks.js - Order management
admin/backend/controllers/admin/orderController.js - Task management
admin/backend/controllers/staff/pos.tasks.js - Inventory operations
admin/backend/controllers/admin/inventoryController.js - Management operations
admin/backend/controllers/admin/managementController.js - Blueprint lifecycle
admin/backend/services/blueprintLifecycleService.js - Payment integration
admin/backend/services/paymongoService.js - Application database
admin/backend/config/db.js - Live updates
admin/frontend/src/services/socket.js
Administration
- Admin workspaces
admin/frontend/src/pages - Admin API routes
admin/backend/routes/admin.js - Reports
admin/backend/routes/admin.reports.js - Database backup
admin/backend/services/databaseBackupService.js - Cloud backup storage
admin/backend/services/r2BackupStorageService.js
Other components
- Customer
- Staff
- Administrator
- Web application
admin/frontend/src/App.jsx - PayMongo
Connections 33
- Customer → Web application: uses
- Staff → Web application: uses
- Administrator → Web application: uses
- Web application → Product catalog: routes to
- Web application → Cart and checkout: routes to
- Web application → Customer orders: routes to
- Web application → Furniture AR: routes to
- Web application → Blueprint editor: routes to
- Web application → Estimation and contracts: routes to
- Web application → Production tasks: routes to
- Web application → Staff task view: routes to
- Web application → POS fulfillment: routes to
- Web application → Inventory management: routes to
- Web application → Admin workspaces: routes to
- HTTP and socket server → Customer API routes: mounts routes
- HTTP and socket server → Task API routes: mounts routes
- Customer API routes → Order management: dispatches
- Task API routes → Task management: dispatches
- Production tasks → Task API routes: requests tasks
- Staff task view → Task API routes: updates tasks
- Order management → Application database: queries
- Task management → Application database: queries
- Inventory operations → Application database: queries
- Management operations → Application database: queries
- Management operations → Blueprint lifecycle: resolves lifecycle
- Order management → Live updates: emits status
- Task management → Live updates: emits task updates
- Cart and checkout → PayMongo: pays via
- Database backup → Cloud backup storage: stores backups
- Admin API routes → Management operations: dispatches
- Admin API routes → Order management: dispatches
- Reports → Inventory operations: dispatches
- Blueprint editor → Blueprint exports: exports designs