How omarabdelrahmn/logistic-erp works
Logistics ERP is a single-company logistics and workforce system. Its documented user-facing path is a client request to the API, with authentication/session validation and permission checks protecting access; operational domains cover workforce, fleet, fuel, maintenance, and platform accounts. Infrastructure implements persistence and services, while the Worker is a separate composition root. The README describes a narrower current stage than the repository tree and sampled operational code suggest; operational branches are included, but their unsampled API-to-service wiring is not asserted.
Main entry points: ApplicationDbContext.cs Application database · Program.cs API host · IdentityDbContext.cs Identity database · FleetService.cs Fleet operations
Components 20
API and access
- API host
src/LogisticsERP.Api/Program.cs - Authentication endpoints
src/LogisticsERP.Api/Controllers/AuthController.cs - Profile endpoints
src/LogisticsERP.Api/Controllers/UserProfileController.cs - Permission handler
src/LogisticsERP.Api/Authorization/PermissionAuthorizationHandler.cs
Identity and authorization
- Authentication service
src/LogisticsERP.Infrastructure/Authentication/AuthenticationService.cs - User management
src/LogisticsERP.Infrastructure/Authentication/UserManagementService.cs - Session validation
src/LogisticsERP.Infrastructure/Authentication/AuthenticationSessionValidator.cs - Permission checks
src/LogisticsERP.Infrastructure/Authentication/PermissionChecker.cs
Operations
- Workforce and HR
src/LogisticsERP.Infrastructure/Hr/WorkforceService.cs - Housing
src/LogisticsERP.Infrastructure/Hr/HousingService.cs - Fleet operations
src/LogisticsERP.Infrastructure/Fleet/FleetService.cs - Fuel cards
src/LogisticsERP.Infrastructure/Fuel/FuelCardService.cs - Maintenance and inventory
src/LogisticsERP.Infrastructure/Maintenance/MaintenanceService.cs - Platform accounts
src/LogisticsERP.Infrastructure/Hr/SimplePlatformService.cs
Persistence and runtime
- Private file storage
src/LogisticsERP.Infrastructure/Files/PrivateFileStorage.cs - Audit queries
src/LogisticsERP.Infrastructure/SystemServices/AuditQueryService.cs - Application database
src/LogisticsERP.Infrastructure/Persistence/ApplicationDbContext.cs - Identity database
src/LogisticsERP.Infrastructure/Identity/IdentityDbContext.cs - Background workers
src/LogisticsERP.Worker/Program.cs
Other components
- ERP user
Connections 19
- ERP user → API host: sends requests
- API host → Authentication endpoints: routes requests
- API host → Profile endpoints: routes requests
- Authentication endpoints → Authentication service: uses authentication
- Profile endpoints → User management: uses profile services
- API host → Session validation: validates sessions
src/LogisticsERP.Api/Program.cs - Permission handler → Permission checks: checks permission
src/LogisticsERP.Api/Authorization/PermissionAuthorizationHandler.cs - Authentication service → Identity database: reads and writes
src/LogisticsERP.Infrastructure/Authentication/AuthenticationService.cs - User management → Identity database: manages identity
- Workforce and HR → Application database: persists HR data
- Housing → Application database: persists housing
- Fleet operations → Application database: reads and writes
src/LogisticsERP.Infrastructure/Fleet/FleetService.cs - Fleet operations → Private file storage: stores files
src/LogisticsERP.Infrastructure/Fleet/FleetService.cs - Fuel cards → Application database: persists fuel data
src/LogisticsERP.Infrastructure/Fuel/FuelCardService.cs - Maintenance and inventory → Application database: persists maintenance data
- Platform accounts → Application database: reads and writes
src/LogisticsERP.Infrastructure/Hr/SimplePlatformService.cs - Audit queries → Application database: reads audit entries
src/LogisticsERP.Infrastructure/SystemServices/AuditQueryService.cs - Audit queries → Identity database: resolves actors
src/LogisticsERP.Infrastructure/SystemServices/AuditQueryService.cs - Background workers → Application database: runs background jobs