How rouempire/cos3105_project works
Zeen’s Kanban Board is a TCP service for managing boards and tasks, with an interactive Fish client. The main workflow sends a command over TCP, dispatches it to a feature handler, and returns a protocol response; board/task lookup also supports parallel search, while bulk retrieval uses a worker pool. The README documents shared state, semaphore-protected persistence, soft deletion, and fake-data generation. Source excerpts show server dispatch and initialization; some feature-to-storage and concurrency details are documented but not visible in the sampled implementation, so those links are omitted or cited to the README.
Main entry points: server.c TCP command server · get_board.c Board lookup · get_task.c Task lookup · add_task.c Task handlers
Components 19
Client and data tools
- Fish client
frontend/app.fish - Fake data generator
generate_fake_data.py
TCP service
- TCP command server
src/server.c - Command protocol
src/protocol.h
Board and task features
- Board handlers
src/features/add_board.c - Task handlers
src/features/add_task.c - Board update
src/features/update_board.c - Board deletion
src/features/remove_board.c - Task update
src/features/update_task.c - Task deletion
src/features/remove_task.c - Task status toggle
src/features/set_task_status.c
Parallel retrieval and search
- Board lookup
src/features/get_board.c - Task lookup
src/features/get_task.c - Bulk retrieval
src/features/get_all_data.c
Project state
- Project model and persistence
src/models.c - Shared project state
src/models.h - Board data file
- Task data file
Other components
- User
Connections 26
- User → Fish client: uses
README.md - Fish client → TCP command server: sends commands
README.md - User → Fake data generator: requests sample data
README.md - Fake data generator → Board data file: generates data
README.md - TCP command server → Command protocol: dispatches commands
src/server.c - TCP command server → Board handlers: dispatches
src/server.c - TCP command server → Task handlers: dispatches
src/server.c - TCP command server → Board lookup: dispatches
src/server.c - TCP command server → Task lookup: dispatches
src/server.c - TCP command server → Bulk retrieval: dispatches
src/server.c - TCP command server → Board update: dispatches
src/server.c - TCP command server → Board deletion: dispatches
src/server.c - TCP command server → Task update: dispatches
src/server.c - TCP command server → Task deletion: dispatches
src/server.c - TCP command server → Task status toggle: dispatches
src/server.c - TCP command server → Project model and persistence: loads project
src/server.c - Project model and persistence → Shared project state: manages
src/models.h - Shared project state → Board data file: persists boards
README.md - Shared project state → Task data file: persists tasks
README.md - Task handlers → Board lookup: looks up boards
- Task handlers → Task lookup: checks duplicates
- Board update → Board lookup: finds board
- Task update → Board lookup: finds board
- Task update → Task lookup: finds task
- Task status toggle → Board lookup: finds board
- Task status toggle → Task lookup: finds task