How mauricio-junior-dev/sistemaadegags works
Adega is an e-commerce and point-of-sale system: customers browse products and combos, place orders, and follow payment/order status; employees process sales and orders, while administrators manage catalog, stock, delivery, and store settings. Laravel provides the API and persistent domain models, and an optional local .NET Print Bridge turns order data into thermal-printer output. The excerpts show routing, order-to-print behavior, and printer dispatch; other capability branches are retained from the README and tree, with unverified links omitted.
Main entry points: OrderController.php Order API · app.routes.ts Storefront routes · Product.php Product model · dashboard.component.ts Admin console
Components 29
Customer storefront
- Storefront routes
frontend/src/app/app.routes.ts - Catalog browsing
frontend/src/app/products/pages/product-list-page/product-list-page.component.ts - Combo shopping
frontend/src/app/combos/pages/combos-page/combos-page.component.ts - Shopping cart
frontend/src/app/store/components/cart/cart.component.ts - Order checkout
frontend/src/app/checkout/pages/checkout/checkout.component.ts - Order tracking
frontend/src/app/orders/pages/orders-list/orders-list.component.ts - Customer identity
frontend/src/app/core/services/auth.service.ts
Store operations
- Employee POS
frontend/src/app/employee/pages/caixa/caixa.component.ts - Order operations
frontend/src/app/employee/pages/pedidos/pedidos.component.ts - Admin console
frontend/src/app/admin/pages/dashboard/dashboard.component.ts - Catalog management
backend/app/Http/Controllers/Api/Admin/ProductController.php - Combo management
backend/app/Http/Controllers/Api/Admin/ComboController.php - Reports
backend/app/Http/Controllers/Api/Admin/ReportController.php - Stock operations
backend/app/Services/StockService.php - Delivery configuration
backend/app/Http/Controllers/DeliveryZoneController.php
Laravel API
- Order API
backend/app/Http/Controllers/Api/OrderController.php - Product API
backend/app/Http/Controllers/Api/ProductController.php - Combo API
backend/app/Http/Controllers/Api/Admin/ComboController.php - Payment webhooks
backend/app/Http/Controllers/Api/WebhookController.php - Commerce models
backend/app/Models/Order.php - Product model
backend/app/Models/Product.php - Category model
backend/app/Models/Category.php - Bundle models
backend/app/Models/ProductBundle.php - Print dispatch
backend/app/Services/PrintService.php
Thermal printing
- Print HTTP service
print-bridge/Program.cs - Receipt rendering
print-bridge/Services/PrinterService.cs - Raw printer output
print-bridge/Helpers/RawPrinterHelper.cs
Other components
- Customer
- Thermal printer
Connections 29
- Customer → Storefront routes: uses
frontend/src/app/app.routes.ts - Storefront routes → Catalog browsing: routes to
frontend/src/app/app.routes.ts - Storefront routes → Combo shopping: routes to
frontend/src/app/app.routes.ts - Storefront routes → Shopping cart: routes to
frontend/src/app/app.routes.ts - Storefront routes → Order checkout: routes to
frontend/src/app/app.routes.ts - Storefront routes → Order tracking: routes to
frontend/src/app/app.routes.ts - Customer → Order checkout: submits
- Order checkout → Order API: creates order
- Order API → Commerce models: reads/writes
backend/app/Http/Controllers/Api/OrderController.php - Order API → Print dispatch: dispatches print
backend/app/Http/Controllers/Api/OrderController.php - Order API → Delivery configuration: checks delivery
backend/app/Http/Controllers/Api/OrderController.php - Order API → Product model: uses products
backend/app/Http/Controllers/Api/OrderController.php - Product API → Product model: queries
backend/app/Http/Controllers/Api/ProductController.php - Product API → Category model: queries
backend/app/Http/Controllers/Api/ProductController.php - Catalog management → Product model: manages
backend/app/Http/Controllers/Api/Admin/ProductController.php - Combo management → Bundle models: manages
backend/app/Http/Controllers/Api/Admin/ComboController.php - Bundle models → Product model: relates products
- Product model → Category model: belongs to
backend/app/Models/Product.php - Employee POS → Order API: handles sales
- Order operations → Order API: operates orders
- Admin console → Catalog management: manages catalog
- Admin console → Combo management: manages combos
- Admin console → Reports: views reports
- Stock operations → Product model: updates stock
- Payment webhooks → Commerce models: updates payments
- Print dispatch → Print HTTP service: posts order
- Print HTTP service → Receipt rendering: invokes
print-bridge/Program.cs - Receipt rendering → Raw printer output: sends bytes
print-bridge/Services/PrinterService.cs - Raw printer output → Thermal printer: prints receipt