How yousif-moh-bashir/shishli-restaurant works
This repository is a restaurant ordering and operations platform: a Vue client sits alongside a Laravel API for storefront ordering, payments, delivery, inventory, and restaurant administration. The principal customer journey is browsing a menu, building a cart, and checking out into an order; operational flows then manage payment and fulfillment. The tree and excerpts show the relevant domains, but checkout internals and most API controller-to-action calls were not sampled, so those links are left out rather than inferred.
Main entry points: Order.php Order · BranchInventory.php Branch inventory · V1 API controllers · auth.js Auth store
Components 22
Web client
- Vue application
front-end/src/App.vue - Auth form
front-end/src/composables/useAuthForm.js - Auth store
front-end/src/stores/auth.js - Route guards
front-end/src/router/authGuards.js - Checkout view
front-end/src/views/site/CheckoutView.vue
API layer
- API routes
back-end/routes/api.php - API controllers
back-end/app/Http/Controllers/Api/V1 - API responses
back-end/app/Http/Responses/ApiResponse.php
Ordering and payments
- Cart
back-end/app/Models/Cart.php - Order
back-end/app/Models/Order.php - Order status
back-end/app/Enums/OrderStatus.php - Payments
back-end/app/Actions/Payments - Promotions
back-end/app/Services/PromotionEngine.php
Restaurant operations
- Branch
back-end/app/Models/Branch.php - Branch inventory
back-end/app/Models/BranchInventory.php - Stock movements
back-end/app/Models/StockMovement.php - Delivery operations
back-end/app/Actions/Drivers - Delivery status
back-end/app/Enums/DeliveryStatus.php
Shared platform
- Users
back-end/app/Models/User.php - Notifications
back-end/app/Services/Notifications/NotificationProviderManager.php - Base controller
back-end/app/Http/Controllers/Controller.php
Other components
- Customer
Connections 20
- Customer → Vue application: uses
- Vue application → Auth store: checks session
front-end/src/App.vue - Auth form → Auth store: submits auth
front-end/src/composables/useAuthForm.js - Auth store → API routes: requests API
- Customer → Checkout view: checks out
- API routes → API controllers: routes requests
back-end/routes/api.php - API controllers → Base controller: extends
back-end/app/Http/Controllers/Api/V1/DriverController.php - API controllers → API responses: formats response
back-end/app/Http/Controllers/Api/V1/DriverController.php - Promotions → Cart: reads cart
back-end/app/Services/PromotionEngine.php - Promotions → Order: checks order history
back-end/app/Services/PromotionEngine.php - Order → Order status: casts status
back-end/app/Models/Order.php - Order → Branch: belongs to
back-end/app/Models/Order.php - Order → Cart: belongs to
back-end/app/Models/Order.php - Order → Users: assigned driver
back-end/app/Models/Order.php - Branch inventory → Stock movements: queried with
back-end/app/Services/InventoryQueryService.php - Branch inventory → Branch: filters by branch
- Branch inventory → Stock movements: queries movements
back-end/app/Services/InventoryQueryService.php - Delivery operations → Delivery status: uses statuses
back-end/app/Http/Controllers/Api/V1/DriverController.php - Delivery operations → Order: operates on orders
back-end/app/Http/Controllers/Api/V1/DriverController.php - Notifications → Notifications: resolves providers
back-end/app/Services/Notifications/NotificationProviderManager.php