How alex-valauney/projet-carcajou works
Carcajou is a multi-platform point-of-sale and inventory system for perishable goods. Its user-facing flow spans sign-in, product and stock administration, receiving stock, recording sales, and reviewing history; the web client also supports offline operation and deferred synchronization. The documented Flutter client and PHP/MySQL backend are included, but the tree has no Dart application sources and the sampled excerpts do not show the mobile app's business workflow or the full web-to-API call paths. Those connections are therefore documented as unverified rather than inferred.
Main entry points: index.php REST routing and auth gate · config.php MySQL database · db.ts IndexedDB local data · syncService.ts Offline synchronization
Components 23
Web administration
- Sign-in
projet-carcajou/src/app/(pages)/(login)/connexion/page.tsx - Dashboard
projet-carcajou/src/app/(pages)/(protected)/accueil/page.tsx - Product and stock management
projet-carcajou/src/app/(pages)/(protected)/gestionStocks/page.tsx - Profile management
projet-carcajou/src/app/(pages)/(protected)/gestionProfils/page.tsx - Other management
projet-carcajou/src/app/(pages)/(protected)/gestionAutre/page.tsx - Stock receiving
projet-carcajou/src/app/(pages)/(protected)/reception/page.tsx - Point of sale
projet-carcajou/src/app/(pages)/(protected)/vente/page.tsx - Activity history
projet-carcajou/src/app/(pages)/(protected) - Role permissions
projet-carcajou/src/lib/permissions.ts
API and security
- REST routing and auth gate
backend-php/api/index.php - Authentication and profiles
backend-php/api/controllers/auth.php - JWT signing and validation
backend-php/api/controllers/jwt_helper.php - Read endpoints
backend-php/api/controllers/requeteGET.php - Write endpoints
backend-php/api/controllers/requetePOST.php - Update endpoints
backend-php/api/controllers/requetePATCH.php - Delete endpoints
backend-php/api/controllers/requeteDELETE.php - MySQL database
backend-php/api/config.php
Offline and persistence
- IndexedDB local data
projet-carcajou/src/lib/db.ts - Offline synchronization
projet-carcajou/src/lib/syncService.ts
Mobile POS
- Flutter cashier client
carcajou_mobile
Other components
- Staff user
- Web operator
- API client
Connections 29
- Staff user → Sign-in: signs in
README.md - Sign-in → REST routing and auth gate: requests login
README.md - REST routing and auth gate → Authentication and profiles: routes auth
backend-php/api/index.php - Authentication and profiles → JWT signing and validation: signs token
backend-php/api/controllers/auth.php - REST routing and auth gate → JWT signing and validation: validates token
README.md - Web operator → Dashboard: uses
README.md - Web operator → Product and stock management: manages stock
README.md - Web operator → Profile management: manages profiles
README.md - Web operator → Other management: manages data
README.md - Web operator → Stock receiving: records arrivals
README.md - Web operator → Point of sale: records sales
README.md - Web operator → Activity history: reviews activity
README.md - Dashboard → Role permissions: checks access
- Product and stock management → IndexedDB local data: uses offline data
README.md - Stock receiving → IndexedDB local data: uses offline data
README.md - Point of sale → IndexedDB local data: uses offline data
README.md - Offline synchronization → IndexedDB local data: reads and writes
projet-carcajou/src/lib/syncService.ts - Offline synchronization → API client: sends REST requests
projet-carcajou/src/lib/syncService.ts - API client → REST routing and auth gate: calls routes
README.md - REST routing and auth gate → Read endpoints: dispatches GET
backend-php/api/index.php - REST routing and auth gate → Write endpoints: dispatches POST
backend-php/api/index.php - REST routing and auth gate → Update endpoints: dispatches PATCH
backend-php/api/index.php - REST routing and auth gate → Delete endpoints: dispatches DELETE
backend-php/api/index.php - Read endpoints → MySQL database: queries database
README.md - Write endpoints → MySQL database: writes database
README.md - Update endpoints → MySQL database: updates database
README.md - Delete endpoints → MySQL database: deletes records
README.md - Staff user → Flutter cashier client: uses cashier app
README.md - Flutter cashier client → API client: uses REST API
README.md