How anshika4137/projecthub works
ProjectHub is a team project-management application. A user registers or logs in, creates or joins a project, then manages members and tasks on a Kanban board, including assignment, due dates, and comments. The client uses REST for persistent operations and Socket.IO for task refreshes and notifications. The backend’s access checks and notification service are the internal layer connecting authorized requests and events to stored domain data. Some client and server modules were not excerpted; their placement and links below rely only on README statements or SOURCE INDEX references.
Main entry points: server.js Express API · App.jsx App routing · projects.js Project routes · tasks.js Task and comment routes
Components 27
Client experience
- App routing
client/src/App.jsx - Login and register
client/src/pages/Register.jsx - Auth context
client/src/context/AuthContext.jsx - Auth hook
client/src/context/useAuth.js - Landing page
client/src/pages/Landing.jsx - Project dashboard
client/src/pages/Dashboard.jsx - Kanban and tasks
client/src/pages/Board.jsx - Task comments
client/src/components/CommentSection.jsx - Navigation and alerts
client/src/components/Navbar.jsx - ProjectHub branding
client/src/components/ProjectHubBrand.jsx - REST configuration
client/src/config/api.js
API and access
- Express API
server/server.js - Authentication routes
server/routes/auth.js - Project routes
server/routes/projects.js - Task and comment routes
server/routes/tasks.js - JWT middleware
server/middleware/auth.js - Membership access
server/utils/access.js
Project data
- User model
server/models/User.js - Project model
server/models/Project.js - Task model
server/models/Task.js - Notification model
server/models/Notification.js - MongoDB
Realtime notifications
- Socket client
client/src/config/socket.js - Notification routes
server/routes/notifications.js - Socket.IO server
server/server.js - Notification service
server/services/notifications.js
Other components
- Team member
Connections 45
- Team member → App routing: uses
README.md - App routing → Login and register: routes to
client/src/App.jsx - App routing → Landing page: routes to
client/src/App.jsx - App routing → Project dashboard: routes to
client/src/App.jsx - App routing → Kanban and tasks: routes to
client/src/App.jsx - Login and register → REST configuration: requests via
client/src/pages/Register.jsx - Project dashboard → REST configuration: requests via
client/src/pages/Dashboard.jsx - Kanban and tasks → REST configuration: requests via
client/src/pages/Board.jsx - Kanban and tasks → Task comments: renders
client/src/pages/Board.jsx - Kanban and tasks → Socket client: emits events
client/src/pages/Board.jsx - Navigation and alerts → Socket client: connects and listens
client/src/components/Navbar.jsx - Navigation and alerts → REST configuration: loads alerts
client/src/components/Navbar.jsx - Navigation and alerts → ProjectHub branding: renders
client/src/components/Navbar.jsx - App routing → Auth context: provides
client/src/App.jsx - Auth context → Auth hook: exports context
client/src/context/AuthContext.jsx - REST configuration → Express API: targets REST API
README.md - Express API → Authentication routes: mounts
server/server.js - Express API → Project routes: mounts
server/server.js - Express API → Task and comment routes: mounts
server/server.js - Express API → Notification routes: mounts
server/server.js - Authentication routes → JWT middleware: uses
server/routes/auth.js - Project routes → JWT middleware: uses
server/routes/projects.js - Task and comment routes → JWT middleware: uses
server/routes/tasks.js - Notification routes → JWT middleware: uses
server/routes/notifications.js - Authentication routes → User model: reads and writes
server/routes/auth.js - Project routes → Project model: reads and writes
server/routes/projects.js - Project routes → Task model: uses
server/routes/projects.js - Project routes → User model: uses
server/routes/projects.js - Task and comment routes → Task model: reads and writes
server/routes/tasks.js - Task and comment routes → User model: checks assignees
server/routes/tasks.js - Notification routes → Notification model: reads and writes
server/routes/notifications.js - Project routes → Membership access: checks membership
server/routes/projects.js - Task and comment routes → Membership access: checks membership
server/routes/tasks.js - Membership access → Project model: loads projects
server/utils/access.js - Membership access → Task model: loads tasks
server/utils/access.js - Express API → MongoDB: connects
server/server.js - Socket client → Socket.IO server: connects to
README.md - Express API → Socket.IO server: creates
server/server.js - Express API → Notification service: configures
server/server.js - Task and comment routes → Notification service: creates comment alerts
server/routes/tasks.js - Socket.IO server → Project model: checks project rooms
server/server.js - Socket.IO server → Notification service: creates task alerts
server/server.js - Notification service → Notification model: stores alerts
server/services/notifications.js - Notification service → Socket.IO server: emits alerts
server/services/notifications.js - Socket.IO server → Socket client: sends realtime events
README.md