How dimpesh10/multi-tenant-saas-task-manager works
This is a collaborative organization and workspace task-board application. Users register or sign in, create an organization, enter a protected dashboard, and manage workspace tasks; the backend provides role-checked APIs and Socket.io workspace rooms. The map covers the documented-by-code UI, organization/workspace/task stages, persistence models, and authentication. Some backend services and UI components were not excerpted, so their connections are included only where the source index supports them.
Main entry points: Dashboard.jsx Dashboard · server.js HTTP server · auth.js Token verification · App.jsx Routes and providers
Components 31
Web application
- Routes and providers
frontend/src/App.jsx - Sign in and register
frontend/src/pages/Login.jsx - Organization setup
frontend/src/pages/CreateOrg.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Kanban board
frontend/src/components/KanbanBoard.jsx - Task editor
frontend/src/components/TaskModal.jsx - Task card
frontend/src/components/TaskCard.jsx - Workspace sidebar
frontend/src/components/Sidebar.jsx - Member invites
frontend/src/components/InviteModal.jsx - Dashboard top bar
frontend/src/components/TopBar.jsx - HTTP client
frontend/src/api/client.js
API and domain
- Organization routes
backend/routes/orgRoutes.js - Organization service
backend/services/orgService.js - Organization records
backend/models/Organization.js - Workspace routes
backend/routes/workspaceRoutes.js - Workspace service
backend/services/workspaceService.js - Workspace records
backend/models/Workspace.js - Task routes
backend/routes/taskRoutes.js - Task service
backend/services/taskService.js - Task records
backend/models/Task.js - HTTP server
backend/server.js - Error handling
backend/middleware/errorHandler.js
Identity and access
- Session state
frontend/src/context/AuthContext.jsx - Authentication routes
backend/routes/authRoutes.js - Authentication service
backend/services/authService.js - Token verification
backend/middleware/auth.js - Role checks
backend/middleware/rbac.js - User records
backend/models/User.js
Live collaboration
- Socket client state
frontend/src/context/SocketContext.jsx - Workspace socket rooms
backend/sockets/index.js
Other components
- User
Connections 42
- User → Routes and providers: uses
frontend/src/App.jsx - Routes and providers → Sign in and register: routes to
frontend/src/App.jsx - Routes and providers → Organization setup: routes to
frontend/src/App.jsx - Routes and providers → Dashboard: routes to
frontend/src/App.jsx - Sign in and register → Session state: uses session
frontend/src/pages/Login.jsx - Organization setup → HTTP client: sends requests
frontend/src/pages/CreateOrg.jsx - Dashboard → HTTP client: sends requests
frontend/src/pages/Dashboard.jsx - Dashboard → Kanban board: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Task editor: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Workspace sidebar: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Member invites: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Dashboard top bar: renders
frontend/src/pages/Dashboard.jsx - Kanban board → Task card: renders
frontend/src/components/KanbanBoard.jsx - Session state → HTTP client: calls
frontend/src/context/AuthContext.jsx - HTTP client → HTTP server: sends HTTP
frontend/src/api/client.js - HTTP server → Authentication routes: mounts
backend/server.js - HTTP server → Organization routes: mounts
backend/server.js - HTTP server → Workspace routes: mounts
backend/server.js - HTTP server → Task routes: mounts
backend/server.js - HTTP server → Workspace socket rooms: initializes
backend/server.js - HTTP server → Error handling: registers
backend/server.js - Authentication routes → Authentication service: calls
backend/routes/authRoutes.js - Authentication routes → Token verification: applies
backend/routes/authRoutes.js - Authentication service → User records: reads and writes
backend/services/authService.js - Token verification → User records: loads user
backend/middleware/auth.js - Organization routes → Organization service: calls
backend/routes/orgRoutes.js - Organization routes → Token verification: applies
backend/routes/orgRoutes.js - Organization routes → Role checks: checks roles
backend/routes/orgRoutes.js - Organization service → Organization records: uses records
backend/services/orgService.js - Organization service → User records: uses records
backend/services/orgService.js - Workspace routes → Workspace service: calls
backend/routes/workspaceRoutes.js - Workspace routes → Token verification: applies
backend/routes/workspaceRoutes.js - Workspace routes → Role checks: checks roles
backend/routes/workspaceRoutes.js - Workspace service → Workspace records: uses records
backend/services/workspaceService.js - Task routes → Task service: calls
backend/routes/taskRoutes.js - Task routes → Token verification: applies
backend/routes/taskRoutes.js - Task routes → Role checks: checks roles
backend/routes/taskRoutes.js - Task service → Task records: uses records
backend/services/taskService.js - Task service → Workspace records: uses records
backend/services/taskService.js - Task service → Workspace socket rooms: emits updates
backend/services/taskService.js - Socket client state → Session state: uses session
frontend/src/context/SocketContext.jsx - Socket client state → Workspace socket rooms: connects to