CodeAlpha Full Stack Development Internship β Task 3
Suggested Repository Name:CodeAlpha_ProjectManagementTool
Live Stack: Node.js β’ Express.js β’ MongoDB β’ Mongoose β’ HTML5 β’ CSS3 β’ JavaScript (ES6+ Vanilla) β’ Socket.IO β’ JWT
ProjectFlow is a modern, high-performance, collaborative Project Management SaaS platform designed for agile teams, engineering squads, and cross-functional organizations. Built for the CodeAlpha Full Stack Development Internship (Task 3), ProjectFlow combines the intuitive card-and-column workflow of Trello, the deadline management of Asana, and the speed of Linear.
The application features an advanced 4-column Kanban board, live Socket.IO WebSockets synchronization, comprehensive task file attachments, recurring task automation, monthly deadline calendar, project CSV export, dynamic team roles (Admin, Lead, Member), audit activity logs, and dark/light theme customization.
- JWT-Based Authentication: Secure HTTP Bearer token authorization and persistent login sessions.
- Bcrypt Password Encryption: Industry-standard salt-and-hash encryption via
bcryptjs(10 rounds). - Protected Express Middleware: Server-side route guards enforcing authentication across all private resources.
- User Profile Management: Update full name, title, bio, and change account passwords securely.
- Password Reset Utility: Cryptographic reset token generation and verification (
/api/auth/forgot-password&/api/auth/reset-password). - Development Demo Accounts: One-click quick login buttons pre-configured for evaluation (
mukesh@projectflow.dev,sarah@projectflow.dev,marcus@projectflow.dev).
- MongoDB-Driven Metric Counters: Real-time counts for Total Projects, Active Tasks, In Progress, Review, and Completed items.
- 7-Day Velocity Chart: Visual SVG task completion trends over the previous 7 days calculated from MongoDB records.
- Status Distribution Bars: Proportional completion progress across all active projects.
- Upcoming Deadlines & Overdue Indicators: Proactive highlights for tasks approaching or past due dates.
- Live Activity Feed: Centralized audit stream recording who created, updated, moved, or commented on tasks.
- Dedicated Agile Columns:
- π To Do
- π‘ In Progress
- π Review
- π’ Completed
- HTML5 Drag-and-Drop: Smooth, animated card movement across columns with real-time backend persistence.
- Mobile / Touch Quick-Move Selector: Seamless dropdown status changer on each card for mobile/touch screens.
- Colored Category Labels & Priority Badges: Visual tags (
Low,Medium,High,Urgent) and colored chips. - Overdue Visual Border: Glowing alert border (
.task-card-overdue) on past-due task cards. - Instant Filters & Search: Filter Kanban cards by title, assignee, and priority in real-time.
- Role-Based Access Control (RBAC): Manage workspace projects with
owner,admin,lead,member, andviewerroles. - Dynamic Role Management: Promotes or reassigns roles (
PATCH /api/projects/:id/members/:userId/role). - Team Invitations: Invite colleagues by email with pending status tracking (
POST /api/projects/:id/invitations). - Project Categories & Deadlines: Organize projects by category (
Web App,Mobile App,Design,DevOps,Marketing). - Ownership Transfer: Secure project transfer with strict permission validation.
- Automated task recurrence engine supporting Daily, Weekly, and Monthly schedules.
- When a recurring task is moved to Completed, the backend automatically schedules and creates the next cycle card in To Do.
- Secure multi-file upload engine powered by Multer.
- Strict file validation: maximum 5MB size limit and safe MIME type filtering (Images, PDFs, Documents, ZIPs).
- In-modal attachment preview thumbnails, download links, and confirmation-guarded deletion.
- Monthly visual calendar view accessible from My Tasks.
- Shows deadline chips mapped to specific calendar days with status color coding.
- Clicking on a deadline card opens the comprehensive task details modal.
- One-click project report generation (
GET /api/projects/:id/export-csv). - Exports complete task rosters with titles, descriptions, assignees, priorities, column status, due dates, and creation timestamps as standard CSV.
- Threaded discussions embedded inside every task modal.
- Author avatars, timestamps, and edit/delete permissions with custom styled modal dialogs (
UI.confirm). - Real-time comment broadcast via Socket.IO.
- Custom design system with CSS custom properties (
--bg-main,--bg-card,--text-main, etc.). - Instant theme toggle in the top navigation bar with persistent client preference in
localStorage.
- Workspace-wide search overlay shortcut (
Ctrl + K). - Queries Projects, Tasks, and Team Members simultaneously with highlighted result links.
- Audit trails for project and task modifications (
GET /api/projects/:id/activitiesand/api/tasks/:id/activities). - Records event types, actor details, previous vs. new values, and relative timestamps.
- In-app notification center and top navbar badge counter.
- Socket.IO alerts for task assignments, project invites, mentions, and status movements.
| Layer | Technologies Used |
|---|---|
| Frontend | HTML5, CSS3 (Custom Design System, CSS Variables, Flexbox/Grid), Vanilla JavaScript (Modular ES6+) |
| Backend | Node.js, Express.js (REST APIs, Controller-Service-Repository pattern) |
| Database | MongoDB, Mongoose ODM |
| Real-Time | Socket.IO (WebSockets with automatic polling fallback) |
| File Storage | Multer file upload middleware with disk storage & validation |
| Authentication | JSON Web Tokens (jsonwebtoken), bcryptjs |
| Security | Helmet.js, CORS, Input validation, Protected Express Middleware |
| Testing | Automated Node.js integration test suites (214 tests across 7 suites) |
ProjectFlow/
βββ backend/
β βββ src/
β β βββ config/
β β β βββ db.js # MongoDB connection logic
β β βββ controllers/
β β β βββ authController.js # Authentication, JWT, profile, password reset
β β β βββ dashboardController.js # MongoDB metrics, velocity, activity feeds
β β β βββ projectController.js # Projects, members, invitations, CSV export
β β β βββ taskController.js # Tasks, Kanban moves, recurrence, attachments
β β β βββ commentController.js # Comments CRUD
β β β βββ notificationController.js # In-app notifications
β β β βββ searchController.js # Global multi-model search
β β β βββ userController.js # User directory & user profile stats
β β βββ middleware/
β β β βββ auth.js # JWT Bearer token authentication guard
β β β βββ projectAuth.js # Project membership & ownership checks
β β β βββ errorHandler.js # Centralized API error handling
β β βββ models/
β β β βββ User.js # User schema with bcrypt hooks & roles
β β β βββ Project.js # Project schema with members & invitations
β β β βββ Task.js # Task schema with recurrence & attachments
β β β βββ Comment.js # Task comment model
β β β βββ Notification.js # In-app notification model
β β β βββ Activity.js # Workspace audit log model
β β βββ routes/
β β β βββ authRoutes.js # /api/auth endpoints
β β β βββ dashboardRoutes.js # /api/dashboard endpoints
β β β βββ projectRoutes.js # /api/projects endpoints & CSV export
β β β βββ taskRoutes.js # /api/tasks endpoints & attachments
β β β βββ commentRoutes.js # /api/comments endpoints
β β β βββ notificationRoutes.js # /api/notifications endpoints
β β β βββ searchRoutes.js # /api/search endpoints
β β β βββ userRoutes.js # /api/users endpoints
β β βββ utils/
β β β βββ jwt.js # JWT token signing & verification
β β β βββ activityLogger.js # Activity logging & WebSocket event emitter
β β βββ seed.js # Demo database seeder
β β βββ autoSeed.js # Development auto-seeder
β β βββ server.js # Express server & Socket.IO initialization
β βββ uploads/ # Secure file attachments directory
β βββ final-master-qa-runner.js # Master QA test runner executing 7 test suites
β βββ saas-platform-verification.js # SaaS 12-feature integration test suite (34 tests)
β βββ comprehensive-audit-v2.js # Full API audit test suite (45 tests)
β βββ profile-and-features-audit.js # Profile, settings & navigation audit (24 tests)
β βββ test-suite.js # Core functional test suite (22 tests)
β βββ deep-verification.js # Edge-case & permission test suite (40 tests)
β βββ advanced-verification.js # Workflow integration test suite (19 tests)
β βββ qa-master-audit.js # API security & performance audit (30 tests)
β βββ .env # Local environment configuration
β βββ package.json # Backend dependencies & npm scripts
βββ frontend/
β βββ index.html # Single-Page Application (SPA) shell
β βββ css/
β β βββ styles.css # SaaS design system, cards, modals, skeletons
β β βββ kanban.css # 4-column Kanban board & drag-and-drop
β β βββ responsive.css # Mobile off-canvas drawer, responsive grid
β βββ js/
β β βββ config.js # API base URL & runtime configuration
β β βββ api.js # Fetch wrapper with Bearer token injection
β β βββ state.js # Centralized reactive client store
β β βββ ui.js # Toasts, styled confirmation modals, formatters
β β βββ auth.js # Sign in, registration & demo logins
β β βββ theme.js # Dark/Light theme manager & persistence
β β βββ socket.js # Socket.IO client & real-time event listeners
β β βββ dashboard.js # Metrics dashboard, velocity chart & activity
β β βββ projects.js # Projects CRUD, invitations & role management
β β βββ board.js # Kanban board drag-and-drop & filters
β β βββ tasks.js # Task modals, recurrence & file attachments
β β βββ calendar.js # Monthly task deadline calendar view
β β βββ comments.js # Task discussion threads & dialog confirmations
β β βββ team.js # Workspace member directory & search
β β βββ notifications.js # Notification center & read state
β β βββ profile.js # Profile settings, stats & password update
β β βββ search.js # Global search overlay (Ctrl + K)
β β βββ app.js # Application bootstrapper & SPA router
β βββ assets/
β βββ favicon.svg # Brand vector icon
βββ README.md # Complete platform documentation
βββ package.json # Workspace root scripts
Ensure you have installed:
- Node.js (v18.0.0 or higher)
- npm (v9.0.0 or higher)
- MongoDB running locally (
mongodb://127.0.0.1:27017/projectflow) or a MongoDB Atlas cloud URI.
cd "c:\Users\acer\OneDrive\Desktop\Project Management Tool\ProjectFlow"cd backend
npm installVerify that backend/.env exists with the following configuration:
PORT=5000
MONGODB_URI=mongodb://127.0.0.1:27017/projectflow
JWT_SECRET=projectflow_super_secret_jwt_key_2026_dev_alpha
JWT_EXPIRE=7d
CLIENT_URL=http://localhost:5000
NODE_ENV=developmentIf you want to re-seed realistic demo projects, team members, tasks, comments, and activities:
cd backend
npm run seedStart the Express backend and WebSocket server:
cd backend
npm startThe server will initialize:
=======================================================
ProjectFlow Server running in development mode
Local URL: http://localhost:5000
WebSocket Real-Time Server active on port 5000
Connected to MongoDB: projectflow
=======================================================
Open your browser and navigate to:
π http://localhost:5000
Use the one-click demo buttons on the login screen or enter:
- Mukesh (Project Lead / Admin):
mukesh@projectflow.dev/password123 - Sarah Chen (Frontend Engineer):
sarah@projectflow.dev/password123 - Marcus Miller (Backend Engineer):
marcus@projectflow.dev/password123 - Priya Sharma (UI/UX Designer):
priya@projectflow.dev/password123 - David Kim (Full Stack Engineer):
david@projectflow.dev/password123
ProjectFlow includes an extensive automated testing harness featuring 7 comprehensive test suites covering 214 automated test assertions across all backend APIs, database operations, security middleware, and frontend assets:
cd backend
node final-master-qa-runner.jssaas-platform-verification.js(34 tests): Verifies all 12 SaaS platform features including Drag & Drop, Team Invites, Dynamic Roles, Analytics, Calendar, Attachments, Global Search, Recurring Tasks, CSV Export, and Theme.comprehensive-audit-v2.js(45 tests): Verifies all REST endpoints, query filters, authorization, and error handling.profile-and-features-audit.js(24 tests): Verifies Profile & Settings page, bio, job title, password changes, and navigation views.test-suite.js(22 tests): Verifies core CodeAlpha Task 3 features (Auth, Projects, Tasks, Comments, Notifications).deep-verification.js(40 tests): Verifies edge-cases, data sanitization, cascade deletions, and boundary permissions.advanced-verification.js(19 tests): Verifies complex workflows, Kanban state transitions, and real-time socket events.qa-master-audit.js(30 tests): Verifies security headers, token expiration, injection safety, and performance response times.
Verification Result: 214 Passed / 0 Failed (100% Pass Rate).
POST /api/auth/registerβ Register a new workspace userPOST /api/auth/loginβ Authenticate user & return JWT tokenGET /api/auth/meβ Retrieve current authenticated user (Protected)PUT /api/auth/profileβ Update user profile details (Protected)PUT /api/auth/passwordβ Change password (Protected)POST /api/auth/forgot-passwordβ Generate cryptographic password reset tokenPOST /api/auth/reset-passwordβ Reset password using tokenGET /api/users/:idβ Get public user profile & activity metrics (Protected)GET /api/usersβ List workspace team members (Protected)
POST /api/projectsβ Create group project (Protected)GET /api/projectsβ List projects for current user (Protected)GET /api/projects/:idβ Get project details & team roster (Protected)PUT /api/projects/:idβ Update project metadata (Owner / Admin)DELETE /api/projects/:idβ Delete project & cascade data (Owner Only)POST /api/projects/:id/membersβ Add member to project (Owner / Admin)DELETE /api/projects/:id/members/:userIdβ Remove member from project (Owner / Admin)PATCH /api/projects/:id/members/:userId/roleβ Update member role (Owner / Admin)POST /api/projects/:id/invitationsβ Send email invitation to project (Owner / Admin)GET /api/projects/:id/export-csvβ Export project tasks report as CSV (Protected)GET /api/projects/:id/activitiesβ Retrieve project activity audit trail (Protected)
POST /api/projects/:projectId/tasksβ Create new task in project (Protected)GET /api/projects/:projectId/tasksβ Get tasks for specific project (Protected)GET /api/tasks/:idβ Get task details with attachments & comments (Protected)PUT /api/tasks/:idβ Update task details (Protected)PATCH /api/tasks/:id/statusβ Move task status column (Kanban Drag & Drop) (Protected)DELETE /api/tasks/:idβ Permanently delete task (Protected)GET /api/tasks/my-tasksβ Get all tasks assigned to logged-in user (Protected)POST /api/tasks/:id/attachmentsβ Upload file attachments to task (Protected)DELETE /api/tasks/:id/attachments/:attachmentIdβ Delete file attachment (Protected)GET /api/tasks/:id/activitiesβ Get task-level activity history (Protected)
POST /api/tasks/:taskId/commentsβ Add comment to task (Protected)GET /api/tasks/:taskId/commentsβ Get comment thread for task (Protected)PUT /api/comments/:idβ Edit own comment (Author Only)DELETE /api/comments/:idβ Delete comment (Author / Project Admin)
GET /api/search?q=:queryβ Multi-model global search across projects, tasks, and users (Protected)GET /api/notificationsβ List in-app notifications (Protected)PATCH /api/notifications/:id/readβ Mark notification as read (Protected)PATCH /api/notifications/read-allβ Mark all notifications as read (Protected)GET /api/dashboard/statsβ Dashboard analytics, 7-day velocity & counts (Protected)
- Password Hashing: Passwords are never stored in plain text. Salt rounds (
10) withbcryptjsare enforced. - Token Security: JWT tokens are signed with expiration periods (
7d) and verified using protected middleware. - Data Sanitization: Mongoose schemas use
select: falseon sensitive password fields. - File Upload Restrictions: Multer middleware limits attachment size to 5MB and enforces strict MIME-type whitelisting.
- Role-Based Authorization: Endpoints verify user roles before granting administrative actions.
- No Exposed Secrets: All sensitive secrets are kept strictly in
.envand omitted from version control.
- Internship: CodeAlpha Full Stack Web Development Internship
- Task: Task 3 β Project Management Tool
- Project Name: ProjectFlow
- Suggested Repository:
CodeAlpha_ProjectManagementTool - Application Type: Full Stack Collaborative SaaS Web Application