How sofdev005/teamflow-backend-api works
TeamFlow is a collaborative project and task-management API: users authenticate into organizations, work with projects and board columns, and create, view, update, move, and delete tasks. The application also exposes organization and project membership features, with project presence and a SignalR hub suggesting realtime collaboration. Application handlers use domain entities and a database-context abstraction; infrastructure supplies persistence and authentication services. Source excerpts show selected calls and context wiring, but not every controller, handler, or realtime route, so unverified links are omitted.
Main entry points: IApplicationDbContext.cs Database contract · Projects Project management · Authentication Register and login · Boards Board columns
Components 23
API access
- Authentication API
TeamFlow.Api/Controllers/AuthController.cs - Boards API
TeamFlow.Api/Controllers/BoardsController.cs - Projects API
TeamFlow.Api/Controllers/ProjectsController.cs - Tasks API
TeamFlow.Api/Controllers/TasksController.cs - Organizations API
TeamFlow.Api/Controllers/OrganizationsController.cs - Board realtime hub
TeamFlow.Api/Hubs/BoardHub.cs
Application features
- Register and login
TeamFlow.Application/Authentication - Board columns
TeamFlow.Application/Features/Boards - Project management
TeamFlow.Application/Features/Projects - Task management
TeamFlow.Application/Features/Tasks - Organization membership
TeamFlow.Application/Features/Organizations - Project presence
TeamFlow.Application/Features/Projects/Members/GetProjectMembersQuery.cs
Domain model
- Core entities
TeamFlow.Domain/Entities - Task behavior
TeamFlow.Domain/Entities/TaskItem.cs - Organization model
TeamFlow.Domain/Entities/Organization.cs - Project model
TeamFlow.Domain/Entities/Project.cs
Infrastructure
- Database contract
TeamFlow.Application/Common/Interfaces/IApplicationDbContext.cs - EF Core database
TeamFlow.Infrastructure.Persistence/TeamFlowDbContext.cs - JWT generator
TeamFlow.Infrastructure/Authentication/JwtTokenGenerator.cs - Current user context
TeamFlow.Infrastructure/Services/CurrentUserService.cs - Realtime notifier
TeamFlow.Infrastructure/Services/SignalRRealtimeNotifier.cs - Background worker
TeamFlow.BackgroundJobs/Worker.cs
Other components
- Team member
Connections 24
- Team member → Authentication API: authenticates
- Team member → Boards API: manages boards
- Team member → Projects API: manages projects
- Team member → Tasks API: manages tasks
- Team member → Organizations API: manages membership
- Boards API → Board columns: dispatches
TeamFlow.Api/Controllers/BoardsController.cs - Projects API → Project management: dispatches
TeamFlow.Api/Controllers/ProjectsController.cs - Tasks API → Task management: dispatches
TeamFlow.Api/Controllers/TasksController.cs - Authentication API → Register and login: dispatches
- Organizations API → Organization membership: dispatches
- Register and login → Database contract: reads users
TeamFlow.Application/Authentication/Queries/Login/LoginQueryHandler.cs - Register and login → JWT generator: generates token
TeamFlow.Application/Authentication/Queries/Login/LoginQueryHandler.cs - Board columns → Database contract: reads and writes
TeamFlow.Application/Features/Boards/Queries/GetBoardColumns/GetBoardColumnsQueryHandler.cs - Board columns → Current user context: checks access
TeamFlow.Application/Features/Boards/Queries/GetBoardColumns/GetBoardColumnsQueryHandler.cs - Project management → Database contract: uses data
TeamFlow.Application/Features/Projects/Members/GetProjectMembersQuery.cs - Project management → Project presence: includes presence
- Project presence → Database contract: records activity
TeamFlow.Application/Features/Projects/Members/GetProjectMembersQuery.cs - Task management → Database contract: uses data
TeamFlow.Application/Features/Tasks/Queries/GetTasks/GetTasksQueryHandler.cs - Database contract → EF Core database: implemented by
TeamFlow.Infrastructure.Persistence/TeamFlowDbContext.cs - EF Core database → Core entities: persists
TeamFlow.Infrastructure.Persistence/TeamFlowDbContext.cs - Task management → Task behavior: moves tasks
TeamFlow.Application/Features/Tasks/Commands/MoveTask/MoveTaskCommandHandler.cs - Project management → Project model: manages projects
TeamFlow.Application/Features/Projects/Members/GetProjectMembersQuery.cs - Organization membership → Organization model: manages organizations
- Board realtime hub → Realtime notifier: uses notifications