How rzhvms/project-data-hub works
project-data-hub is an Angular web application and .NET microservice system for managing an architecture-and-construction company’s project portfolio. The main workflow is an authenticated client request routed through the API gateway to project management, where projects can be listed, drafted, updated, and published; related capabilities include categories, participants, metrics, images, and document exports. Identity handles users and JWT tokens. The graph uses README statements and sampled call sites for evidenced links; unsampled feature wiring is omitted or marked unverified.
Main entry points: ProjectController.cs Provider endpoints · app.ts Angular app · AuthUseCaseManager.cs Auth and token use cases · AuthController.cs Identity endpoints
Components 24
Web client
- Angular app
frontend/src/app/app.ts - Login and auth
frontend/src/libs/modules/auth/services/auth.service.ts - Project workspace
frontend/src/app/pages/main/children/objects/objects.page.ts - Media workspace
frontend/src/app/pages/main/children/media/media.page.ts - WordPress settings
frontend/src/app/pages/main/children/wp-settings/wp-settings.page.ts
API entry
- YARP gateway
Identity service
- Identity endpoints
api/Apps/IdentityApi/Api/Controllers/Auth/AuthController.cs - Auth and token use cases
api/Apps/IdentityApi/Application/UseCases/Auth/AuthUseCaseManager.cs - User management
api/Apps/IdentityApi/Application/UseCases/Users/UserUseCaseManager.cs - User persistence
api/Apps/IdentityApi/Infrastructure/Repositories/Users/UserRepository.cs - Users and refresh tokens
api/Apps/IdentityApi/Domain/Entities/IdentityUser/User.cs
Portfolio service
- Provider endpoints
api/Apps/ProviderApi/Api/Controllers/ProjectManage/ProjectController.cs - Project workflows
api/Apps/ProviderApi/Application/UseCases/ProjectManage/ProjectUseCaseManager.cs - Project persistence
api/Apps/ProviderApi/Infrastructure/Repositories/Project/ProjectRepository.cs - Participants
api/Apps/ProviderApi/Application/UseCases/Participants/ParticipantUseCaseManager.cs - Categories
api/Apps/ProviderApi/Application/UseCases/Categories/CategoryUseCaseManager.cs - Project metrics
api/Apps/ProviderApi/Application/UseCases/ProjectManage/ProjectMetricsUseCaseManager.cs - Project images
api/Apps/ProviderApi/Application/UseCases/Images/ImageUseCase.cs - Portfolio exports
api/Apps/ProviderApi/Application/UseCases/ExportFiles/ExportFilesUseCaseManager.cs - MinIO object storage
api/Apps/ProviderApi/Infrastructure/Storages/MinioFileReader.cs
Shared services
- JWT generation
api/Libs/IdentityLib/IdentityLib/Jwt/Services/JwtGenerationService.cs - Audit logging
api/Libs/CoreLib/CoreLib/Audit/DapperAuditService.cs
Other components
- Staff user
- PostgreSQL
Connections 26
- Staff user → Angular app: uses
README.md - Angular app → Login and auth: opens login
- Angular app → Project workspace: routes to
- Angular app → Media workspace: routes to
- Angular app → WordPress settings: routes to
- Angular app → YARP gateway: sends requests
README.md - YARP gateway → Identity endpoints: proxies identity
README.md - YARP gateway → Provider endpoints: proxies provider
README.md - Identity endpoints → Auth and token use cases: delegates auth
- Auth and token use cases → User persistence: reads and writes
api/Apps/IdentityApi/Application/UseCases/Auth/AuthUseCaseManager.cs - Auth and token use cases → Users and refresh tokens: creates token state
api/Apps/IdentityApi/Application/UseCases/Auth/AuthUseCaseManager.cs - Auth and token use cases → JWT generation: generates tokens
api/Apps/IdentityApi/Application/UseCases/Auth/AuthUseCaseManager.cs - User persistence → PostgreSQL: persists users
README.md - Identity endpoints → User management: delegates users
- Project workspace → Provider endpoints: requests projects
- Provider endpoints → Project workflows: calls project use cases
api/Apps/ProviderApi/Api/Controllers/ProjectManage/ProjectController.cs - Provider endpoints → Project images: calls image use cases
api/Apps/ProviderApi/Api/Controllers/ProjectManage/ProjectController.cs - Project workflows → Project persistence: reads and writes
api/Apps/ProviderApi/Application/UseCases/ProjectManage/ProjectUseCaseManager.cs - Project workflows → Audit logging: records actions
api/Apps/ProviderApi/Application/UseCases/ProjectManage/ProjectUseCaseManager.cs - Project persistence → PostgreSQL: persists projects
README.md - Provider endpoints → Participants: manages participants
- Provider endpoints → Categories: manages categories
- Provider endpoints → Project metrics: manages metrics
- Provider endpoints → Portfolio exports: requests exports
- Project images → MinIO object storage: stores images
- Portfolio exports → MinIO object storage: reads stored files