How bagus-26/projectuts-papb works
MakanYuk is a ready-to-eat food ordering system: customers use a Flutter app against a Laravel/MySQL REST API to browse products, manage a cart, check out, and track orders; staff manage products, store hours, and order states through a web admin panel. The README documents these capabilities, but the supplied tree and excerpts do not include Flutter’s lib/ sources or API route definitions, so those internal links are shown only where documented; unverified wiring is omitted.
Main entry points: api.php REST API · CheckoutService.php Checkout · PesananService.php Order transitions · Pesanan.php Orders and details
Components 21
Customer ordering
- Flutter app
Ordering backend
- REST API
backend/routes/api.php - Product catalog
backend/app/Http/Controllers/Api/ProdukController.php - Cart management
backend/app/Http/Controllers/Api/KeranjangController.php - Checkout
backend/app/Services/CheckoutService.php - Order history
backend/app/Http/Controllers/Api/PesananController.php - API references
backend/app/Http/Controllers/Api/KategoriController.php
Admin operations
- Admin panel
backend/routes/web.php - Admin order actions
backend/app/Http/Controllers/Admin/PesananController.php - Admin product CRUD
backend/app/Http/Controllers/Admin/ProdukController.php - Store settings
backend/app/Http/Controllers/Admin/TokoController.php
Domain and state
- Order transitions
backend/app/Services/PesananService.php - Product rules
backend/app/Services/ProdukService.php - Store hours
backend/app/Support/JamOperasiToko.php - Order state machine
backend/app/Support/StatusPesanan.php - Products and variants
backend/app/Models/Produk.php - Cart data
backend/app/Models/Keranjang.php - Orders and details
backend/app/Models/Pesanan.php - Delivery and payment
backend/app/Models/Kurir.php - API response format
backend/app/Support/ResponsApi.php
Other components
- Customer
Connections 27
- Customer → Flutter app: uses
README.md - Flutter app → REST API: calls API
README.md - REST API → Product catalog: routes requests
- REST API → Cart management: routes requests
- REST API → Checkout: routes checkout
- REST API → Order history: routes requests
- REST API → API references: serves lookups
- Checkout → Store hours: checks hours
backend/app/Services/CheckoutService.php - Checkout → Cart data: reads and clears
backend/app/Services/CheckoutService.php - Checkout → Products and variants: checks stock
backend/app/Services/CheckoutService.php - Checkout → Orders and details: creates order
backend/app/Services/CheckoutService.php - Checkout → Delivery and payment: validates choices
backend/app/Services/CheckoutService.php - Product catalog → Product rules: delegates changes
backend/app/Http/Controllers/Api/ProdukController.php - Product rules → Products and variants: manages products
backend/app/Services/ProdukService.php - Order history → Order transitions: delegates status
backend/app/Http/Controllers/Api/PesananController.php - Order history → Orders and details: reads history
backend/app/Http/Controllers/Api/PesananController.php - Order transitions → Orders and details: updates state
backend/app/Services/PesananService.php - Order transitions → Order state machine: checks transitions
backend/app/Services/PesananService.php - Admin panel → Admin order actions: routes admin
backend/routes/web.php - Admin panel → Admin product CRUD: routes admin
backend/routes/web.php - Admin panel → Store settings: routes admin
backend/routes/web.php - Admin order actions → Order transitions: changes status
backend/app/Http/Controllers/Admin/PesananController.php - Admin order actions → Order state machine: offers transitions
backend/app/Http/Controllers/Admin/PesananController.php - Admin product CRUD → Product rules: delegates CRUD
backend/app/Http/Controllers/Admin/ProdukController.php - Store settings → Store hours: configures hours
backend/app/Http/Controllers/Admin/TokoController.php - REST API → API response format: formats errors
- Orders and details → Products and variants: relates details
backend/app/Models/Pesanan.php