How thomasventure/todolistapp works
This is a small interactive command-line to-do list app. The user enters the menu through the view, which requests and displays the current list and handles add, remove, and exit choices. The service creates and coordinates todo operations; the repository keeps todos in a mutable in-memory list. The excerpts show the app’s wiring and these calls, but no persistence beyond process memory. The repository interface and implementation are separate nodes to distinguish the service boundary from storage behavior.
Main entry points: TodoListServiceImpl.kt Service logic · TodoListView.kt Todo view · App.kt App wiring · TodoListRepositoryImpl.kt List repository
Components 9
CLI interaction
- App wiring
app/src/main/kotlin/todolist/kotlin/App.kt - Todo view
app/src/main/kotlin/view/TodoListView.kt - Console input
app/src/main/kotlin/utils/InputUtil.kt
Todo domain
- Todo service
app/src/main/kotlin/services/TodoListService.kt - Service logic
app/src/main/kotlin/services/TodoListServiceImpl.kt - Todo entity
app/src/main/kotlin/entity/Todolist.kt
In-memory storage
- Repository contract
app/src/main/kotlin/repository/TodoListRepository.kt - List repository
app/src/main/kotlin/repository/TodoListRepositoryImpl.kt
Other components
- User
Connections 11
- User → Todo view: uses
- App wiring → List repository: creates
app/src/main/kotlin/todolist/kotlin/App.kt - App wiring → Service logic: creates
app/src/main/kotlin/todolist/kotlin/App.kt - App wiring → Todo view: creates and starts
app/src/main/kotlin/todolist/kotlin/App.kt - Todo view → Todo service: requests operations
app/src/main/kotlin/view/TodoListView.kt - Todo view → Console input: reads input
app/src/main/kotlin/view/TodoListView.kt - Service logic → Todo service: implements
app/src/main/kotlin/services/TodoListServiceImpl.kt - Service logic → Repository contract: calls
app/src/main/kotlin/services/TodoListServiceImpl.kt - List repository → Repository contract: implements
app/src/main/kotlin/repository/TodoListRepositoryImpl.kt - Service logic → Todo entity: creates
app/src/main/kotlin/services/TodoListServiceImpl.kt - List repository → Todo entity: stores
app/src/main/kotlin/repository/TodoListRepositoryImpl.kt