How tfsephyy/petfave_group works
PetFave is a clinic and pet-parent portal: users sign in to a role-aware workspace, then manage pets, guardians, appointments, clinical records, inventory, staff, and settings. The React frontend routes workspace pages and the Laravel backend exposes API controllers for those domains. Clinical encounters can issue stock, while backend services record audit events. The README is empty, so capabilities are inferred from the source index and sampled code; several frontend-to-API and unsampled controller relationships remain unverified.
Main entry points: web.php API route dispatch · App.jsx Workspace routing · Audit.php Audit trail · AnimalController.php Pet endpoints
Components 24
Web workspace
- Workspace routing
Front/src/App.jsx - Session context
Front/src/lib/context.jsx - API client
Front/src/lib/api.js - Sign-in flows
Front/src/pages/Auth.jsx - Pet records UI
Front/src/pages/Animals.jsx - Appointments UI
Front/src/pages/Appointments.jsx - Other workspace pages
Front/src/pages
API and access
- API route dispatch
Group-System/routes/web.php - Account access
Group-System/app/Http/Controllers/AuthController.php - Audit trail
Group-System/app/Services/Audit.php
Patient care
- Pet endpoints
Group-System/app/Http/Controllers/AnimalController.php - Booking endpoints
Group-System/app/Http/Controllers/BookingController.php - Clinical records
Group-System/app/Http/Controllers/ClinicalController.php - Pet domain model
Group-System/app/Models/Animal.php - Guardian endpoints
Group-System/app/Http/Controllers/GuardianController.php - Guardian model
Group-System/app/Models/Guardian.php - Booking scheduling
Group-System/app/Services/BookingService.php
Clinic operations
- Inventory endpoints
Group-System/app/Http/Controllers/InventoryController.php - Stock movements
Group-System/app/Services/StockService.php - Stock records
Group-System/app/Models/StockProduct.php - Staff accounts
Group-System/app/Http/Controllers/EmployeeController.php - Clinic overview
Group-System/app/Http/Controllers/DashboardController.php - Account settings
Group-System/app/Http/Controllers/SettingsController.php
Other components
- Browser user
Connections 30
- Browser user → Workspace routing: uses
Front/src/App.jsx - Workspace routing → Session context: provides session
Front/src/App.jsx - Workspace routing → Sign-in flows: routes to
Front/src/App.jsx - Workspace routing → Pet records UI: routes to
Front/src/App.jsx - Workspace routing → Appointments UI: routes to
Front/src/App.jsx - Workspace routing → Other workspace pages: routes to
Front/src/App.jsx - Workspace routing → API client: loads resources
Front/src/App.jsx - Workspace routing → API route dispatch: sends API requests
- API route dispatch → Account access: dispatches
Group-System/routes/web.php - API route dispatch → Pet endpoints: dispatches
Group-System/routes/web.php - API route dispatch → Booking endpoints: dispatches
Group-System/routes/web.php - API route dispatch → Clinical records: dispatches
Group-System/routes/web.php - API route dispatch → Guardian endpoints: dispatches
Group-System/routes/web.php - API route dispatch → Inventory endpoints: dispatches
Group-System/routes/web.php - API route dispatch → Staff accounts: dispatches
Group-System/routes/web.php - API route dispatch → Clinic overview: dispatches
Group-System/routes/web.php - API route dispatch → Account settings: dispatches
Group-System/routes/web.php - Account access → Guardian model: creates guardian
Group-System/app/Http/Controllers/AuthController.php - Pet endpoints → Pet domain model: reads and writes
Group-System/app/Http/Controllers/AnimalController.php - Pet endpoints → Guardian model: loads guardian data
Group-System/app/Http/Controllers/AnimalController.php - Clinical records → Pet domain model: records care for
Group-System/app/Http/Controllers/ClinicalController.php - Clinical records → Stock movements: issues supplies
Group-System/app/Http/Controllers/ClinicalController.php - Inventory endpoints → Stock movements: moves stock
Group-System/app/Http/Controllers/InventoryController.php - Stock movements → Stock records: updates stock
Group-System/app/Services/StockService.php - Booking endpoints → Booking scheduling: delegates booking
- Pet endpoints → Audit trail: records events
Group-System/app/Http/Controllers/AnimalController.php - Account access → Audit trail: records events
Group-System/app/Http/Controllers/AuthController.php - Clinical records → Audit trail: records events
Group-System/app/Http/Controllers/ClinicalController.php - Inventory endpoints → Audit trail: records events
Group-System/app/Http/Controllers/InventoryController.php - Stock movements → Audit trail: records events
Group-System/app/Services/StockService.php