How jamesaltamia/filsync works
This is a school canteen and retail operations system: staff sign in, then manage inventory, customers, sales/orders, reports, canteen billing, water transactions, stock-room movements, and settings. The React client routes users to these workflows and calls a Laravel API; API routes dispatch to domain controllers and services. Authentication is the clearest fully evidenced client-to-server path. Other frontend-to-API links are represented only where endpoint calls or route dispatches are visible. Several page/service and controller implementations were not sampled, so those internal relationships are omitted rather than inferred.
Main entry points: App.tsx Route application · api.php API routes · Product.php Products and categories · Order.php Orders and items
Components 32
Web client
- Route application
client/src/App.tsx - Auth state
client/src/contexts/AuthContext.tsx - Auth client
client/src/services/authService.ts - Dashboard
client/src/pages/Dashboard/DashboardPage.tsx - Inventory
client/src/pages/Inventory/InventoryPage.tsx - Sales checkout
client/src/pages/Sales/SalesPage.tsx - Order history
client/src/pages/OrdersHistory/OrdersHistoryPage.tsx - Customers
client/src/pages/Customers/CustomersPage.tsx - Reports
client/src/pages/Reports/ReportsPage.tsx - Canteen
client/src/pages/Canteen/CanteenPage.tsx - Water station
client/src/pages/WaterStation/WaterPage.tsx - Stock room
client/src/pages/StockRoom/StockRoomPage.tsx - Settings
client/src/pages/Settings/SettingsPage.tsx
API and operations
- API routes
server/routes/api.php - Authentication
server/app/Http/Controllers/AuthController.php - Dashboard data
server/app/Http/Controllers/DashboardController.php - Inventory management
server/app/Http/Controllers/InventoryController.php - Orders and sales
server/app/Http/Controllers/OrderController.php - Customer management
server/app/Http/Controllers/CustomerController.php - Report generation
server/app/Http/Controllers/ReportController.php - Canteen billing
server/app/Http/Controllers/CanteenController.php - Water transactions
server/app/Http/Controllers/WaterTransactionController.php - Stock-room operations
server/app/Http/Controllers/StockRoomController.php - Settings management
server/app/Http/Controllers/SettingsController.php - Inventory rules
server/app/Services/InventoryService.php - Report calculations
server/app/Services/ReportService.php
Business data
- Products and categories
server/app/Models/Product.php - Orders and items
server/app/Models/Order.php - Customer records
server/app/Models/Customer.php - User accounts
server/app/Models/User.php - Stock-room records
server/app/Models/StockRoomProduct.php
Other components
- Staff user
Connections 36
- Staff user → Route application: opens
client/src/App.tsx - Route application → Auth state: provides auth
client/src/App.tsx - Route application → Dashboard: routes
client/src/App.tsx - Route application → Inventory: routes
client/src/App.tsx - Route application → Sales checkout: routes
client/src/App.tsx - Route application → Order history: routes
client/src/App.tsx - Route application → Customers: routes
client/src/App.tsx - Route application → Reports: routes
client/src/App.tsx - Route application → Canteen: routes
client/src/App.tsx - Route application → Water station: routes
client/src/App.tsx - Route application → Stock room: routes
client/src/App.tsx - Route application → Settings: routes
client/src/App.tsx - Auth state → Auth client: requests auth
client/src/contexts/AuthContext.tsx - Auth client → API routes: calls auth endpoints
client/src/services/authService.ts - API routes → Authentication: dispatches auth
server/routes/api.php - API routes → Dashboard data: dispatches dashboard
server/routes/api.php - API routes → Inventory management: dispatches inventory
server/routes/api.php - API routes → Orders and sales: dispatches orders
server/routes/api.php - API routes → Customer management: dispatches customers
server/routes/api.php - API routes → Report generation: dispatches reports
server/routes/api.php - API routes → Canteen billing: dispatches canteen
server/routes/api.php - API routes → Water transactions: dispatches water
server/routes/api.php - API routes → Stock-room operations: dispatches stock room
server/routes/api.php - API routes → Settings management: dispatches settings
server/routes/api.php - Authentication → User accounts: uses accounts
server/app/Http/Controllers/AuthController.php - Inventory management → Inventory rules: gets low stock
server/app/Http/Controllers/InventoryController.php - Inventory management → Products and categories: manages products
server/app/Http/Controllers/InventoryController.php - Dashboard data → Products and categories: queries products
server/app/Http/Controllers/DashboardController.php - Dashboard data → Orders and items: queries orders
server/app/Http/Controllers/DashboardController.php - Customer management → Customer records: manages customers
server/app/Http/Controllers/CustomerController.php - Report generation → Report calculations: uses calculations
server/app/Http/Controllers/ReportController.php - Report calculations → Orders and items: queries sales
server/app/Services/ReportService.php - Inventory rules → Products and categories: queries stock
server/app/Services/InventoryService.php - Stock-room operations → Stock-room records: manages stock
server/app/Http/Controllers/StockRoomController.php - Orders and items → Customer records: relates customer
server/app/Models/Order.php - Products and categories → Orders and items: relates order items
server/app/Models/Product.php