How ilyasx1/gestionpro works
GestionPro is a React/Laravel business-management application. Users sign in and work with clients, products, quotes, invoices, payments, reminders, and notifications; React sends API requests to Laravel, which applies validation and business rules and uses MySQL for persistence. The graph includes the documented feature areas and sampled domain stages. Some controllers and feature hooks were not excerpted, so their internal links are omitted rather than inferred; the broad client-server and database flow is documented in the README.
Main entry points: App.js Application shell · FactureService.php Invoice rules · api.js HTTP API client · DevisService.php Quote rules
Components 29
React application
- Application shell
frontend/react/src/App.js - Session and permissions
frontend/react/src/hooks/useSession.js - Client management
frontend/react/src/pages/Clients.js - Quote management
frontend/react/src/pages/Devis.js - Invoice management
frontend/react/src/pages/Factures.js - Payment management
frontend/react/src/pages/Paiements.js - Products and reminders
frontend/react/src/pages - Notifications
frontend/react/src/components/Notifications.js - HTTP API client
frontend/react/src/services/api.js
Laravel API
- Laravel API
backend/laravel/routes/api.php - Authentication
backend/laravel/app/Http/Controllers/Api/AuthController.php - Client endpoints
backend/laravel/app/Http/Controllers/Api/ClientController.php - Quote endpoints
backend/laravel/app/Http/Controllers/Api/DevisController.php - Invoice endpoints
backend/laravel/app/Http/Controllers/Api/FactureController.php - Payments and reminders
backend/laravel/app/Http/Controllers/Api
Business services
- Quote rules
backend/laravel/app/Services/DevisService.php - Invoice rules
backend/laravel/app/Services/FactureService.php - Payment rules
backend/laravel/app/Services/PaiementService.php - Document line builder
backend/laravel/app/Services/Concerns/BuildsDocumentLignes.php - Money calculations
backend/laravel/app/Support/Money.php - Document numbering
backend/laravel/app/Services/NumeroService.php - Notification generation
backend/laravel/app/Services/NotificationGenerationService.php - Dashboard summaries
backend/laravel/app/Services/DashboardService.php
Domain data
- MySQL database
- Client records
backend/laravel/app/Models/Client.php - Quote records
backend/laravel/app/Models/Devis.php - Invoice records
backend/laravel/app/Models/Facture.php - User records
backend/laravel/app/Models/User.php
Other components
- Business user
Connections 31
- Business user → Application shell: uses
README.md - Application shell → Session and permissions: uses
frontend/react/src/App.js - Application shell → Notifications: renders
frontend/react/src/App.js - Application shell → Quote management: renders
frontend/react/src/App.js - Application shell → Invoice management: renders
frontend/react/src/App.js - Application shell → Payment management: renders
frontend/react/src/App.js - Application shell → HTTP API client: loads data
- Client management → HTTP API client: requests data
- Quote management → HTTP API client: requests data
- Invoice management → HTTP API client: requests data
- Payment management → HTTP API client: requests data
- HTTP API client → Laravel API: sends HTTP
README.md - Laravel API → MySQL database: reads and writes
README.md - Laravel API → Authentication: routes requests
- Quote endpoints → Quote rules: delegates
backend/laravel/app/Http/Controllers/Api/DevisController.php - Quote endpoints → Invoice rules: converts quote
backend/laravel/app/Http/Controllers/Api/DevisController.php - Invoice endpoints → Invoice rules: delegates
backend/laravel/app/Http/Controllers/Api/FactureController.php - Payments and reminders → Payment rules: checks balance
backend/laravel/app/Http/Controllers/Api/RelanceController.php - Quote rules → Document line builder: uses
backend/laravel/app/Services/DevisService.php - Invoice rules → Document line builder: uses
backend/laravel/app/Services/FactureService.php - Quote rules → Document numbering: assigns number
backend/laravel/app/Services/DevisService.php - Invoice rules → Document numbering: assigns number
backend/laravel/app/Services/FactureService.php - Invoice rules → Money calculations: calculates totals
backend/laravel/app/Services/FactureService.php - Payment rules → Money calculations: calculates amounts
backend/laravel/app/Services/PaiementService.php - Payment rules → Notification generation: generates notices
backend/laravel/app/Services/PaiementService.php - Quote rules → Quote records: persists quote
backend/laravel/app/Services/DevisService.php - Invoice rules → Invoice records: persists invoice
backend/laravel/app/Services/FactureService.php - Invoice rules → Client records: resolves client
backend/laravel/app/Services/FactureService.php - Client records → User records: belongs to
backend/laravel/app/Models/Client.php - Quote records → Client records: belongs to
backend/laravel/app/Models/Devis.php - Invoice records → Client records: belongs to
backend/laravel/app/Models/Facture.php