How adriankiv/real-time-collaborative-kanban works
This is a collaborative Kanban workspace: users authenticate, browse or create boards, then manage columns and tasks; REST mutations persist state and board-scoped WebSocket events keep collaborators current. The graph includes the documented Go handler/service/repository layers and the sampled React routes, board interactions, authentication, and event hook. Backend implementation excerpts were not supplied, so internal backend links reflect README-level architecture rather than inspected calls; unsampled links are omitted where the relationship is not documented.
Main entry points: BoardView.jsx Board workspace · App.jsx Route shell · AuthContext.jsx Session auth · axios.js HTTP client
Components 23
React client
- Route shell
frontend/src/App.jsx - Session auth
frontend/src/context/AuthContext.jsx - HTTP client
frontend/src/api/axios.js - Login and register
frontend/src/pages/Login.jsx - Registration
frontend/src/pages/Register.jsx - Board dashboard
frontend/src/pages/Dashboard.jsx - Board workspace
frontend/src/pages/BoardView.jsx - Board settings
frontend/src/components/BoardSettingsModal.jsx - Member invitations
frontend/src/components/InviteMemberModal.jsx - Kanban columns
frontend/src/components/KanbanColumn.jsx - Task cards
frontend/src/components/TaskCard.jsx - Task editing
frontend/src/components/TaskModal.jsx - Board event hook
frontend/src/hooks/useBoardWebSocket.js
REST services
- Go API
backend/cmd/api/main.go - HTTP handlers
backend/internal/handler - Domain services
backend/internal/service - Data repositories
backend/internal/repository - JWT utilities
backend/internal/utils/jwt.go
Realtime collaboration
- WebSocket handler
backend/internal/ws/handler.go - Board event hub
backend/internal/ws/hub.go
Persistence
- PostgreSQL
- GORM models
backend/internal/models
Other components
- Workspace user
Connections 27
- Workspace user → Route shell: uses
README.md - Route shell → Session auth: provides session
frontend/src/App.jsx - Route shell → Login and register: routes to
frontend/src/App.jsx - Route shell → Registration: routes to
frontend/src/App.jsx - Route shell → Board dashboard: routes to
frontend/src/App.jsx - Route shell → Board workspace: routes to
frontend/src/App.jsx - Session auth → HTTP client: requests auth
frontend/src/context/AuthContext.jsx - Login and register → Session auth: signs in
frontend/src/pages/Login.jsx - Registration → Session auth: creates account
frontend/src/pages/Register.jsx - Board dashboard → HTTP client: loads boards
frontend/src/pages/Dashboard.jsx - Board workspace → HTTP client: mutates board
frontend/src/pages/BoardView.jsx - Board workspace → Board settings: opens settings
frontend/src/pages/BoardView.jsx - Board workspace → Member invitations: opens invitations
frontend/src/pages/BoardView.jsx - Board workspace → Kanban columns: renders columns
frontend/src/pages/BoardView.jsx - Kanban columns → Task cards: renders tasks
frontend/src/components/KanbanColumn.jsx - Board workspace → Task editing: edits tasks
frontend/src/pages/BoardView.jsx - Board workspace → Board event hook: subscribes events
frontend/src/pages/BoardView.jsx - HTTP client → Go API: HTTP with JWT
README.md - Board event hook → WebSocket handler: WebSocket with JWT
README.md - Go API → HTTP handlers: serves routes
README.md - HTTP handlers → Domain services: invokes services
README.md - Domain services → Data repositories: checks then changes
README.md - Data repositories → PostgreSQL: persists through GORM
README.md - GORM models → PostgreSQL: defines migrations
README.md - WebSocket handler → Board event hub: registers clients
README.md - Domain services → Board event hub: broadcasts mutations
README.md - Go API → JWT utilities: validates JWT