How facolydev/gazup works
GazUp is a multi-store gas-delivery platform: customers browse a store’s catalog, place and track an order, and receive delivery; stores manage orders and couriers, while platform supervisors administer stores, service fees, and settlements. Four Flutter apps and the public website use a PHP API, with store and supervisor back offices alongside it. The README documents the wider product capabilities; sampled source confirms several shared runtime layers, but not every endpoint-to-domain call, so those links are shown only where documented.
Main entry points: api.php API runtime · metier.php Business rules · web.php Back-office runtime · fonctions.php Shared functions
Components 34
Customer and mobile channels
- Client app
mobile/app_client - Courier app
mobile/app_livreur - Store app
mobile/app_magasin - Supervisor app
mobile/app_superviseur - Public shop
backend/index.php
Store operations
- Store back office
backend/admin - Catalog management
backend/api/produits - Order lifecycle
backend/api/commandes - Courier operations
backend/api/livreurs - Courier dispatch
backend/api/attribution
Platform administration
- Platform back office
backend/superadmin - Store management
backend/api/magasins - Fees and settlements
backend/includes/commission.php
API and domain services
- Customer accounts
backend/api/clients - Authentication
backend/includes/auth.php - API runtime
backend/includes/api.php - Business rules
backend/includes/metier.php - Notifications
backend/includes/notifications.php - Payments
backend/api/paiements - Delivery locations
backend/api/lieux - Statistics and charts
backend/includes/stats.php - Back-office runtime
backend/includes/web.php - Site rendering
backend/includes/site.php - Shared functions
backend/includes/fonctions.php - Account balances
backend/includes/comptes.php
Persistence and integrations
- Configuration
backend/config/config.php - Database access
backend/includes/db.php - MySQL database
- Schema migration
backend/database/migrer.php - Mobile money provider
- Maps and routing
- Push service
- CinetPay integration
backend/includes/cinetpay.php
Other components
- Customer
Connections 44
- Customer → Public shop: browses
backend/index.php - Customer → Client app: uses
README.md - Client app → API runtime: calls API
README.md - Courier app → API runtime: calls API
README.md - Store app → API runtime: calls API
README.md - Supervisor app → API runtime: calls API
README.md - Public shop → Site rendering: renders via
backend/index.php - Store back office → Back-office runtime: uses
backend/admin/index.php - Platform back office → Back-office runtime: uses
backend/superadmin/index.php - Store back office → Statistics and charts: reads stats
backend/admin/index.php - Platform back office → Statistics and charts: reads stats
backend/superadmin/index.php - API runtime → Authentication: loads
backend/includes/api.php - API runtime → Business rules: loads
backend/includes/api.php - API runtime → Business rules: expires orders
backend/includes/api.php - API runtime → Notifications: queues pushes
backend/includes/api.php - Authentication → Shared functions: uses
backend/includes/auth.php - Business rules → Shared functions: uses
backend/includes/metier.php - Business rules → Notifications: sends notices
backend/includes/metier.php - Business rules → Account balances: updates balances
backend/includes/metier.php - Business rules → Fees and settlements: uses fee rules
backend/includes/metier.php - Order lifecycle → Business rules: applies rules
README.md - Courier dispatch → Business rules: uses dispatch rules
README.md - Store management → API runtime: serves endpoints
README.md - Catalog management → API runtime: serves endpoints
README.md - Customer accounts → API runtime: serves endpoints
README.md - Order lifecycle → API runtime: serves endpoints
README.md - Courier operations → API runtime: serves endpoints
README.md - Courier dispatch → API runtime: serves endpoints
README.md - Payments → API runtime: serves endpoints
README.md - Delivery locations → API runtime: serves endpoints
README.md - Payments → CinetPay integration: uses
backend/api/paiements/initier.php - CinetPay integration → Mobile money provider: integrates
- Delivery locations → Maps and routing: queries
README.md - Notifications → Push service: pushes optionally
- Shared functions → Database access: uses
backend/includes/fonctions.php - Database access → Configuration: loads settings
backend/includes/db.php - Database access → MySQL database: queries
README.md - Schema migration → Database access: uses
backend/database/migrer.php - Account balances → Shared functions: uses
backend/includes/comptes.php - Fees and settlements → Shared functions: uses
backend/includes/commission.php - Back-office runtime → Authentication: uses
backend/includes/web.php - Back-office runtime → Business rules: uses
backend/includes/web.php - Back-office runtime → Statistics and charts: loads stats
backend/includes/web.php - Site rendering → Back-office runtime: uses
backend/includes/site.php