How mohamed-hussein-dev/task-team-management-system works
This is a .NET Web API for team identity, project membership and leadership, and project task collaboration. Users register or log in, then authenticated users create and manage projects and tasks; leaders can manage project tasks and assignments. Controllers dispatch requests through MediatR to application handlers, which use repository and unit-of-work abstractions backed by EF Core and Identity. The README documents role-based authorization and the domain relationships. Several handler and configuration paths are represented by their existing directories because their individual implementations were not sampled.
Main entry points: Projects Project workflows · ApplicationDbContext.cs EF Identity store · Tasks Task workflows · Commands Auth workflows
Components 21
API and access
- Auth endpoints
src/TaskTeamManagementSystem.Api/Controllers/AuthController.cs - Project endpoints
src/TaskTeamManagementSystem.Api/Controllers/ProjectController.cs - Task endpoints
src/TaskTeamManagementSystem.Api/Controllers/TaskController.cs - Leader policy
src/TaskTeamManagementSystem.Api/Policies/TeamLeader/ProjectLeaderHandler.cs
Application workflows
- Auth workflows
src/TaskTeamManagementSystem.Application/Features/Auth/Commands - JWT contract
src/TaskTeamManagementSystem.Application/Features/Auth/Interfaces/IJwtGenerator.cs - Project workflows
src/TaskTeamManagementSystem.Application/Features/Projects - Task workflows
src/TaskTeamManagementSystem.Application/Features/Tasks - API responses
src/TaskTeamManagementSystem.Application/Features/Common/Responses/BaseResponse.cs - Unit of work
src/TaskTeamManagementSystem.Application/Interfaces/IUnitOfWork.cs - Repository contracts
src/TaskTeamManagementSystem.Application/Interfaces/Repositories
Domain model
- Project
src/TaskTeamManagementSystem.Domain/Entities/Project.cs - Project task
src/TaskTeamManagementSystem.Domain/Entities/ProjectTask.cs - Identity user
src/TaskTeamManagementSystem.Domain/Entities/Identtity/AppUser.cs
Persistence and identity
- EF Identity store
src/TaskTeamManagementSystem.Infrastructure/Persistence/ApplicationDbContext.cs - Generic repository
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/GenericRepository.cs - Project repository
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/ProjectRepository.cs - Task repository
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/TaskRepository.cs - Unit of work implementation
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/UnitOfWork.cs - JWT generator
src/TaskTeamManagementSystem.Infrastructure/Identity/JwtGenerator.cs
Other components
- API client
Connections 29
- API client → Auth endpoints: registers or logs in
src/TaskTeamManagementSystem.Api/Controllers/AuthController.cs - API client → Project endpoints: manages projects
README.md - API client → Task endpoints: manages tasks
README.md - Auth endpoints → Auth workflows: sends requests
src/TaskTeamManagementSystem.Api/Controllers/AuthController.cs - Project endpoints → Project workflows: sends requests
src/TaskTeamManagementSystem.Api/Controllers/ProjectController.cs - Project endpoints → Task workflows: requests project tasks
src/TaskTeamManagementSystem.Api/Controllers/ProjectController.cs - Task endpoints → Task workflows: sends requests
src/TaskTeamManagementSystem.Api/Controllers/TaskController.cs - Auth workflows → JWT contract: uses contract
src/TaskTeamManagementSystem.Application/Features/Auth/Commands/RegisterUserCommandHandler.cs - Auth workflows → Identity user: creates user
src/TaskTeamManagementSystem.Application/Features/Auth/Commands/RegisterUserCommandHandler.cs - Auth workflows → JWT generator: generates token
src/TaskTeamManagementSystem.Application/Features/Auth/Commands/LoginUserCommandHandler.cs - Project workflows → Unit of work: uses
src/TaskTeamManagementSystem.Application/Features/Projects/Commands/CreateProjectCommandHandler.cs - Project workflows → Project: creates project
src/TaskTeamManagementSystem.Application/Features/Projects/Commands/CreateProjectCommandHandler.cs - Task workflows → Unit of work: uses
src/TaskTeamManagementSystem.Application/Features/Tasks/Handlers/UpdateTaskHandler.cs - Project workflows → API responses: returns
src/TaskTeamManagementSystem.Application/Features/Projects/Commands/CreateProjectCommandHandler.cs - Task workflows → API responses: returns
src/TaskTeamManagementSystem.Application/Features/Tasks/Handlers/UpdateTaskHandler.cs - Project workflows → Task workflows: queries project tasks
- Leader policy → EF Identity store: checks project leader
src/TaskTeamManagementSystem.Api/Policies/TeamLeader/ProjectLeaderHandler.cs - Unit of work → Repository contracts: exposes repositories
src/TaskTeamManagementSystem.Application/Interfaces/IUnitOfWork.cs - Unit of work implementation → Project repository: coordinates
- Unit of work implementation → Task repository: coordinates
- Generic repository → EF Identity store: reads and writes
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/GenericRepository.cs - Project repository → Generic repository: extends
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/ProjectRepository.cs - Task repository → Generic repository: extends
src/TaskTeamManagementSystem.Infrastructure/Persistence/Repositories/TaskRepository.cs - Project → Project task: has many
README.md - Identity user → Project: leads and joins
README.md - Identity user → Project task: may be assigned
README.md - EF Identity store → Identity user: stores identity
src/TaskTeamManagementSystem.Infrastructure/Persistence/ApplicationDbContext.cs - EF Identity store → Project: stores
src/TaskTeamManagementSystem.Infrastructure/Persistence/ApplicationDbContext.cs - EF Identity store → Project task: stores
src/TaskTeamManagementSystem.Infrastructure/Persistence/ApplicationDbContext.cs