How julianmantel/simple-kanbanboards works
Purpose and topology
Simple Kanban Boards is a full-stack project/task management system: users belong to projects, projects contain boards, boards contain columns, and columns contain tasks. It consists of a React single-page client and an ASP.NET Core API backed by a relational database. Container orchestration is defined in compose.yaml, with service images in Backend/Dockerfile and Frontend/simple-kanbanboards-client/Dockerfile.
Client entry, routing, and session boundary
The browser application starts at Frontend/simple-kanbanboards-client/src/main.tsx, renders the application shell in Frontend/simple-kanbanboards-client/src/app/App.tsx, and defines route composition in Frontend/simple-kanbanboards-client/src/routes/index.tsx. Authentication state is centralized in Frontend/simple-kanbanboards-client/src/auth/context/AuthContext.tsx; protected and guest-only route gates are in Frontend/simple-kanbanboards-client/src/auth/components/ProtectedRoute.tsx and Frontend/simple-kanbanboards-client/src/auth/components/GuestRoute.tsx.
Frontend domain modules and API boundary
Feature modules separate UI, local types, and HTTP operations for authentication, projects, boards, and tasks. API calls pass through the shared client/configuration layer (Frontend/simple-kanbanboards-client/src/shared/config/httpClient.ts, Frontend/simple-kanbanboards-client/src/shared/config/api.ts) before reaching backend endpoints. Main workflow screens are project navigation/details (Frontend/simple-kanbanboards-client/src/projects/pages/Home.tsx, Frontend/simple-kanbanboards-client/src/projects/pages/ProjectPage.tsx) and board/task manipulation (Frontend/simple-kanbanboards-client/src/boards/pages/BoardPage.tsx, Frontend/simple-kanbanboards-client/src/boards/components/boardcolumn/BoardView.tsx).
API host and transport layer
The .NET API process is bootstrapped and composed in Backend/SimpleKanbanBoards.API/Program.cs. REST entry points are resource controllers: Backend/SimpleKanbanBoards.API/Controllers/ProjectsController.cs, Backend/SimpleKanbanBoards.API/Controllers/BoardsController.cs, and Backend/SimpleKanbanBoards.API/Controllers/TasksController.cs; user, role, and board-column endpoints complete the public surface. Backend/SimpleKanbanBoards.API/Middlewares/ExceptionHandlingMiddleware.cs converts application exceptions into consistent API responses.
Business layer: rules, authorization, and workflows
Business services own application workflows and sit between controllers and persistence: Backend/SimpleKanbanBoards.Business/Service/ProjectService.cs, Backend/SimpleKanbanBoards.Business/Service/BoardService.cs, and Backend/SimpleKanbanBoards.Business/Service/TaskService.cs. User lifecycle, login/password recovery, and token handling are concentrated in Backend/SimpleKanbanBoards.Business/Service/UserService.cs, Backend/SimpleKanbanBoards.Business/Utils/AuthUtil.cs, and Backend/SimpleKanbanBoards.Business/Utils/JwtUtil.cs. Request/response models form the API-to-domain contract under Backend/SimpleKanbanBoards.Business/Models; validators enforce create/update inputs before or during service workflows.
Persistence and relational model
Entity Framework Core persistence centers on Backend/SimpleKanbanBoards.DataAccess/DataContext/DbkanbanContext.cs, using repositories as the business-to-data boundary. Key aggregate persistence paths are Backend/SimpleKanbanBoards.DataAccess/Repository/ProjectRepository.cs, Backend/SimpleKanbanBoards.DataAccess/Repository/BoardRepository.cs, and Backend/SimpleKanbanBoards.DataAccess/Repository/TaskRepository.cs. Core entities include project membership (Backend/SimpleKanbanBoards.DataAccess/Models/UserProject.cs), boards/columns/tasks, users/roles, refresh tokens, and password-reset tokens. Schema evolution is captured in Backend/SimpleKanbanBoards.DataAccess/Migrations/.
Cross-cutting integrations and runtime flow
A typical mutation flows: React feature component → feature API module/shared HTTP client → ASP.NET controller → business service (validation, authorization, mapping, domain errors) → repository/EF DbContext → database → ApiResult response back to the client. JWT-based authentication crosses this entire boundary; refresh-token and reset-password records are persisted. Password-recovery email behavior is represented by Backend/SimpleKanbanBoards.Business/Service/EmailService.cs and Backend/SimpleKanbanBoards.Business/Templates/EmailTemplateBuilder.cs, indicating an external email delivery dependency configured at deployment time.
Main entry points: index.tsx Routes & access gates · ProjectsController.cs Project, board & task controllers · httpClient.ts HTTP client & API config · UserService.cs User & token services
Components 21
React client
- Browser SPA
- Client entry & shell
Frontend/simple-kanbanboards-client/src/main.tsx - Routes & access gates · Composes routes and protected or guest-only access.
Frontend/simple-kanbanboards-client/src/routes/index.tsx - Auth session context
Frontend/simple-kanbanboards-client/src/auth/context/AuthContext.tsx - Project screens
Frontend/simple-kanbanboards-client/src/projects/pages/ProjectPage.tsx - Board & task UI
Frontend/simple-kanbanboards-client/src/boards/pages/BoardPage.tsx - HTTP client & API config
Frontend/simple-kanbanboards-client/src/shared/config/httpClient.ts
ASP.NET Core API
- API host
Backend/SimpleKanbanBoards.API/Program.cs - Exception middleware · Converts application errors to consistent API responses.
Backend/SimpleKanbanBoards.API/Middlewares/ExceptionHandlingMiddleware.cs - Project, board & task controllers
Backend/SimpleKanbanBoards.API/Controllers/ProjectsController.cs - Project, board & task services · Applies validation, authorization, mapping, and domain rules.
Backend/SimpleKanbanBoards.Business/Service/ProjectService.cs - User & token services · Handles lifecycle, login, recovery, and token workflows.
Backend/SimpleKanbanBoards.Business/Service/UserService.cs - Request/response models
Backend/SimpleKanbanBoards.Business/Models
Persistence & integrations
- Aggregate repositories
Backend/SimpleKanbanBoards.DataAccess/Repository/ProjectRepository.cs - EF Core DbContext
Backend/SimpleKanbanBoards.DataAccess/DataContext/DbkanbanContext.cs - Relational database · Stores users, memberships, boards, columns, tasks, and token records.
- Password recovery email · Builds and delivers password-recovery email.
Backend/SimpleKanbanBoards.Business/Service/EmailService.cs - Email delivery provider
Container runtime
- Compose orchestration · Runs client and API service images.
compose.yaml - API image
Backend/Dockerfile - Client image
Frontend/simple-kanbanboards-client/Dockerfile
Connections 22
- Browser SPA → Client entry & shell: loads
- Client entry & shell → Routes & access gates: renders
- Routes & access gates → Auth session context: uses session
- Routes & access gates → Project screens: navigates to
- Routes & access gates → Board & task UI: navigates to
- Project screens → HTTP client & API config: API calls
- Board & task UI → HTTP client & API config: mutations
- Auth session context → HTTP client & API config: JWT session
- HTTP client & API config → API host: HTTPS REST
- API host → Exception middleware: pipeline
- Exception middleware → Project, board & task controllers: dispatches
- Project, board & task controllers → Project, board & task services: resource workflows
- Project, board & task controllers → User & token services: identity workflows
- Project, board & task controllers → Request/response models: binds/responds
- Project, board & task services → Aggregate repositories: persists aggregates
- User & token services → Aggregate repositories: users and tokens
- User & token services → Password recovery email: recovery requests
- Password recovery email → Email delivery provider: delivers
- Aggregate repositories → EF Core DbContext: EF operations
- EF Core DbContext → Relational database: reads/writes
- Compose orchestration → API image: builds/runs
- Compose orchestration → Client image: builds/runs