How ahmadojavaid/cubagroceries works
Cuba Groceries is a grocery-delivery platform with a Laravel REST API and Filament administration; the README also identifies a Flutter customer and rider app. The principal workflow is browsing the catalog, authenticating, placing and tracking an order, and completing delivery. The graph preserves supporting account, wallet, fulfillment, feedback, and admin capabilities. The Flutter business-logic sources are absent from the supplied tree, so mobile-to-API behavior is not asserted; API dispatch and sampled controller-to-model relationships are shown where supported.
Main entry points: api.php REST routes · OrderController.php Order checkout · Filament Admin workflows · Order.php Orders and status
Components 18
Clients
- Customer
- Rider
- Admin staff
API access
- REST routes
backend/routes/api.php - Authentication
backend/app/Http/Controllers/Api/V1/AuthController.php
Commerce workflow
- Catalog browsing
backend/app/Http/Controllers/Api/V1 - Customer account
backend/app/Http/Controllers/Api/V1 - Order checkout
backend/app/Http/Controllers/Api/V1/OrderController.php - Reviews and surveys
backend/app/Http/Controllers/Api/V1/ReviewController.php
Store operations
- Rider fulfillment
backend/app/Http/Controllers/Api/V1 - Store information
backend/app/Http/Controllers/Api/V1 - Admin workflows
backend/app/Filament - Push notifications
backend/app/Services/FcmService.php
Domain data
- Orders and status
backend/app/Models/Order.php - Customer and wallet
backend/app/Models/User.php - Products and pricing
backend/app/Models/Product.php - Addresses and support
backend/app/Models/Address.php - PostgreSQL
Connections 23
- Customer → REST routes: uses API
README.md - Rider → REST routes: uses API
README.md - Admin staff → Admin workflows: manages
- REST routes → Authentication: dispatches auth
backend/routes/api.php - REST routes → Catalog browsing: dispatches catalog
backend/routes/api.php - REST routes → Customer account: dispatches account
backend/routes/api.php - REST routes → Order checkout: dispatches orders
backend/routes/api.php - REST routes → Rider fulfillment: dispatches rider
backend/routes/api.php - REST routes → Reviews and surveys: dispatches feedback
backend/routes/api.php - REST routes → Store information: dispatches store info
backend/routes/api.php - Authentication → Customer and wallet: creates users
backend/app/Http/Controllers/Api/V1/AuthController.php - Order checkout → Orders and status: creates and updates
backend/app/Http/Controllers/Api/V1/OrderController.php - Order checkout → Products and pricing: checks price and stock
backend/app/Http/Controllers/Api/V1/OrderController.php - Order checkout → Customer and wallet: updates wallet
backend/app/Http/Controllers/Api/V1/OrderController.php - Order checkout → Addresses and support: reads address
backend/app/Http/Controllers/Api/V1/OrderController.php - Reviews and surveys → Orders and status: checks delivery
backend/app/Http/Controllers/Api/V1/ReviewController.php - Admin workflows → Orders and status: manages orders
backend/app/Filament/Resources/OrderResource.php - Admin workflows → Customer and wallet: manages customers
backend/app/Filament/Resources/CustomerResource.php - Orders and status → PostgreSQL: persists in
README.md - Customer and wallet → PostgreSQL: persists in
README.md - Products and pricing → PostgreSQL: persists in
README.md - Addresses and support → PostgreSQL: persists in
README.md - Admin workflows → Push notifications: sends push