How codespheretechnologies/spicevendor works
SpiceVendor DMS is a multi-tenant field-sales and distribution management application, with Laravel web and API entry points and a mobile client indicated by the Windows Flutter launcher. The main sales workflow captures an order, applies lifecycle rules, and persists it; the application also covers customers, catalog and pricing, commissions, reporting, data transfer, and administration. Sampled controller and service code supports the customer, order, and webhook links shown. Other capability branches reflect the source tree; their internal wiring is not established by the excerpts.
Main entry points: WebhookService.php Webhook management · Web Web controllers · Api API controllers · CustomerService.php Customer management
Components 23
Application entry
- Web routes
backend/routes/web.php - API routes
backend/routes/api.php - Web controllers
backend/app/Http/Controllers/Web - API controllers
backend/app/Http/Controllers/Api
Sales operations
- Customer management
backend/app/Services/CustomerService.php - Order lifecycle
backend/app/Services/OrderService.php - Product pricing
backend/app/Services/PricingService.php - Catalog management
backend/app/Services/ProductService.php - Commissions
backend/app/Services/CommissionService.php
Insights and data
- Dashboard
backend/app/Services/DashboardService.php - Reports
backend/app/Services/ReportService.php - Data imports
backend/app/Services/DataImportService.php - Data exports
backend/app/Services/DataExportService.php
Administration
- Tenant and user admin
backend/app/Services/TenantService.php - Settings and access
backend/app/Services/SettingService.php - Webhook management
backend/app/Services/WebhookService.php - Activity and audit
backend/app/Services/ActivityLogService.php
Persistence and delivery
- Repository layer
backend/app/Repositories/Implementations - Domain records
backend/app/Models - Webhook delivery job
backend/app/Jobs/DispatchWebhook.php
Other components
- Staff user
- Mobile client
mobile/windows/runner/main.cpp - Webhook receiver
Connections 11
- Staff user → Web routes: uses
- Staff user → API routes: uses
- Mobile client → API routes: sends requests
- Web controllers → Customer management: calls
- API controllers → Order lifecycle: calls
- API controllers → Webhook management: calls
- Web controllers → Webhook management: calls
- Order lifecycle → Repository layer: persists through
- Customer management → Repository layer: persists through
- Webhook management → Webhook delivery job: dispatches
- Webhook delivery job → Webhook receiver: posts payload