How kiroz1/task-manager-kanban works
1. What this repository is
- A single Spring Boot application that implements a Kanban-style task board.
- The architecture is classic server-side MVC with a small client-side JavaScript layer for drag-and-drop interactions.
2. Main runtime boundary
- The browser loads a Thymeleaf-rendered board page from the Spring Boot app.
- After the initial render, user actions such as create, move, and delete are handled through HTTP requests back to the same backend.
3. Presentation layer
- src/main/resources/templates/board.html is the main view.
- src/main/resources/static/css/styles.css and src/main/resources/static/js/board.js provide styling and interactive behavior.
- Bootstrap 5 is used for layout and UI components, so the UI is mostly server-rendered but enhanced on the client side.
4. Client-side interaction model
- board.js is the boundary for drag-and-drop behavior.
- It likely captures task movement between columns and triggers backend requests to persist changes.
- This separates the visual Kanban interactions from the server-side task lifecycle.
5. Web/controller layer
- TaskController is the HTTP entry point.
- It maps board-related actions to the service layer and prepares model data for the Thymeleaf template.
- This is the main translation layer between browser requests and application logic.
6. Application/service layer
- TaskService contains the business rules for task management.
- It mediates between controller requests and persistence, and is the right place for state transitions, validation, and task operations such as create/update/delete.
- The service layer keeps the controller thin and isolates business logic from storage concerns.
7. Domain model
- Task is the core persisted entity.
- Estado represents task state and directly maps to the Kanban columns.
- These two types define the board’s domain boundary: tasks move between fixed statuses.
8. Persistence layer
- TaskRepository is the Spring Data JPA abstraction over the database.
- The app uses H2 in file mode, with the database stored under data/taskdb.mv.db.
- This means task data survives restarts without needing an external database server.
9. Data flow through the system
- Initial page load: browser → controller → service → repository → H2 → controller → Thymeleaf board view.
- Task changes: browser JS → controller endpoint(s) → service → repository → H2, then the UI updates to reflect the new state.
- The board counts shown in the UI are derived from the current task set grouped by Estado.
10. Configuration and packaging
- src/main/resources/application.properties holds runtime settings, including database and server configuration.
- The project is built with Gradle (build.gradle, Gradle wrapper), which is the primary build/runtime toolchain.
11. Project scope and test boundary
- TaskManagerApplicationTests indicates a minimal Spring Boot test setup, mainly for application context verification.
- There is no sign of separate microservices, message queues, or external integrations; the app is self-contained around the web UI and local database.
Main entry points: TaskController.java TaskController · TaskManagerApplication.java TaskManagerApp · TaskService.java TaskService · board.html Board view
Components 15
Spring app
Main server-side application layers for the Kanban board.
- TaskManagerApp · Application bootstrap for the Spring Boot runtime.
src/main/java/com/example/demo/taskmanager/TaskManagerApplication.java - TaskController · HTTP entry point for board rendering and task actions.
src/main/java/com/example/demo/taskmanager/controller/TaskController.java - TaskService · Business logic for task lifecycle and state transitions.
src/main/java/com/example/demo/taskmanager/service/TaskService.java - Task · Persistent task record shown on the Kanban board.
src/main/java/com/example/demo/taskmanager/model/Task.java - Estado · Fixed task statuses that define Kanban columns.
src/main/java/com/example/demo/taskmanager/model/Estado.java
Browser UI
Thymeleaf view and static assets used by the browser.
- Board view · Server-rendered board page delivered to the browser.
src/main/resources/templates/board.html - Board JS · Drag-and-drop and browser-side board interactions.
src/main/resources/static/js/board.js - Stylesheet · Visual styling for the board UI.
src/main/resources/static/css/styles.css
Storage
Local persistence and repository boundary.
- TaskRepository · Persistence abstraction over stored tasks.
src/main/java/com/example/demo/taskmanager/repository/TaskRepository.java - H2 file · Local file-backed database storing task data across restarts.
data/taskdb.mv.db
Build & config
Project build, runtime settings, and packaged application entrypoint.
- App config · Server and database configuration for the application.
src/main/resources/application.properties - Gradle build · Primary build and dependency management setup.
build.gradle - Settings · Gradle project settings for the build.
settings.gradle - Gradle wrapper · Wrapper scripts and distribution metadata used to run Gradle.
gradlew - App tests · Minimal test coverage for application context startup.
src/test/java/com/example/demo/TaskManagerApplicationTests.java
Connections 18
- TaskManagerApp → TaskController: wires · Bootstraps web layer components.
- TaskController → TaskService: delegates · Controller forwards board actions to business logic.
- TaskService → TaskRepository: persists via · Service reads and writes tasks through repository.
- TaskRepository → H2 file: stores in · Repository maps task data to the local H2 file.
- TaskController → Board view: renders · Controller prepares model data for Thymeleaf.
- Board view → Board JS: loads · Board template includes client-side interaction script.
- Board view → Stylesheet: styles with · Board template is styled by the static stylesheet.
- Board JS → TaskController: XHR actions · Client-side drag-and-drop and mutations call backend endpoints.
- TaskController → Task: uses · Controller binds and exposes task data in the model.
- TaskService → Task: operates on · Service applies task lifecycle rules to domain entities.
- Task → Estado: classified by · Task status determines the board column.
- TaskController → Estado: groups by · Board counts and lanes derive from task states.
- Gradle build → TaskManagerApp: builds · Gradle compiles and packages the Spring Boot app.
- Settings → Gradle build: configures · Project settings participate in the build setup.
- Gradle wrapper → Gradle build: launches · Wrapper scripts invoke the Gradle build.
- App config → TaskRepository: configures · Runtime properties define the persistence backend.
- App config → TaskManagerApp: configures · Application properties influence server runtime behavior.
- App tests → TaskManagerApp: verifies · Tests validate application startup context.