DevBoard is a collaborative project-management platform that helps development teams plan work, track tasks, manage sprints, and monitor delivery progress in one place.
PROJECT: DevBoard ROLE: Act as a senior software architect, full-stack developer, UI/UX designer, QA engineer, and security engineer. GOAL: Build a complete, production-ready web application called DevBoard. TARGET USERS: Software development teams, product managers, and freelancers who need to organize projects, assign tasks, track progress, manage deadlines, and collaborate efficiently. BUSINESS CONTEXT: DevBoard helps teams replace scattered task lists and manual coordination with a centralized project-management system. It improves visibility into work status, accountability, deadlines, and team productivity. CORE FEATURES: 1. User registration, email verification, login, logout, password reset, and profile management. 2. Create and manage workspaces, projects, teams, and members. 3. Role-based access control with Owner, Admin, Member, and Viewer roles. 4. Create projects with descriptions, deadlines, status, tags, and project members. 5. Create tasks with title, description, assignee, priority, labels, due date, estimate, and attachments. 6. Kanban board with customizable columns and drag-and-drop task movement. 7. Task detail page with comments, mentions, activity history, checklists, and file attachments. 8. Sprint planning with sprint start/end dates, backlog, active sprint, and completed sprint views. 9. Dashboard with project progress, overdue tasks, workload distribution, and upcoming deadlines. 10. Notifications for task assignment, mentions, comments, status changes, and approaching deadlines. 11. Global search across projects, tasks, comments, and members. 12. Export project tasks and reports to CSV or PDF. 13. Public read-only project sharing link with optional expiration date. USER STORIES: - As a team owner, I want to create a workspace and invite members so that my team can collaborate in one place. - As a project manager, I want to create tasks and assign them to members so that work is clearly distributed. - As a developer, I want to move tasks across a Kanban board so that I can update work status quickly. - As a team member, I want to receive notifications when I am assigned a task or mentioned in a comment so that I do not miss important updates. - As a manager, I want to view project progress and overdue tasks so that I can identify risks early. - As a user, I want to export task reports so that I can share progress with stakeholders. TECH STACK: - Frontend: Next.js + TypeScript + Tailwind CSS - Backend: Node.js + NestJS + TypeScript - Database: PostgreSQL with Prisma ORM - Authentication: JWT authentication with refresh tokens - Real-time updates: Socket.IO or WebSockets - File storage: AWS S3 or Cloudinary - Email service: Resend or SendGrid - State management: React Query and Zustand - Validation: Zod - Testing: Vitest, Supertest, and Playwright - Deployment: Docker, GitHub Actions, and a cloud platform such as Vercel, Railway, or Render ARCHITECTURE: - Use a clean, modular, scalable architecture. - Separate UI, application/business logic, data access, domain models, and external integrations. - Use a clear folder structure and consistent naming conventions. - Use typed models, DTOs, validation schemas, and centralized error handling. - Design REST APIs with clear request and response contracts. - Use database transactions for multi-step operations. - Make the application maintainable, testable, and production-ready. USER INTERFACE: - Build a modern, clean, responsive, and accessible UI. - Include desktop, tablet, and mobile layouts. - Create a sidebar with workspaces, projects, sprints, notifications, and settings. - Build a dashboard with charts, progress indicators, upcoming deadlines, and recent activity. - Build a Kanban board with columns such as Backlog, In Progress, Review, and Done. - Build a task detail drawer or page with description, assignee, due date, checklist, comments, attachments, and activity timeline. - Include modals, toast notifications, empty states, loading states, and error states. - Support dark mode and light mode. - Ensure keyboard navigation, screen-reader support, and accessible color contrast. SECURITY & PRIVACY: - Never hardcode API keys, passwords, tokens, or secrets. - Use environment variables and provide a .env.example file. - Validate and sanitize all user input on both client and server. - Protect against SQL injection, XSS, CSRF, clickjacking, and insecure file uploads. - Hash passwords using bcrypt or Argon2. - Implement role-based access control and server-side authorization checks. - Require explicit confirmation before deleting projects, tasks, members, or shared links. - Do not expose sensitive data, stack traces, tokens, or internal errors in logs or API responses. - Apply rate limiting to authentication, file upload, and public sharing endpoints. - Use secure cookies, token expiration, and refresh-token rotation. DATA MODEL: - User: id, name, email, passwordHash, avatarUrl, role, emailVerified, createdAt, updatedAt. - Workspace: id, name, ownerId, plan, createdAt, updatedAt. - WorkspaceMember: id, workspaceId, userId, role, joinedAt. - Project: id, workspaceId, name, description, status, startDate, dueDate, createdBy, createdAt, updatedAt. - ProjectMember: id, projectId, userId, role, joinedAt. - Task: id, projectId, title, description, status, priority, assigneeId, createdBy, dueDate, estimate, position, createdAt, updatedAt. - Label: id, projectId, name, color. - TaskLabel: id, taskId, labelId. - Comment: id, taskId, authorId, content, createdAt, updatedAt. - Attachment: id, taskId, uploaderId, fileUrl, fileName, fileSize, mimeType, createdAt. - Sprint: id, projectId, name, goal, startDate, endDate, status. - SprintTask: id, sprintId, taskId. - Notification: id, userId, type, title, message, entityId, isRead, createdAt. - ShareLink: id, projectId, slug, createdBy, expiresAt, viewCount, createdAt. TESTING & QUALITY: - Write unit tests for task status transitions, permissions, sprint calculations, and business logic. - Write integration tests for authentication, workspace management, project CRUD, task CRUD, comments, attachments, and sharing. - Write end-to-end tests for registration, login, workspace creation, project creation, task creation, Kanban movement, commenting, and project deletion. - Include tests for invalid input, unauthorized access, expired share links, file upload failures, and destructive actions. - Ensure the project passes linting, type checking, build, and all tests. DELIVERABLES: - Complete source code with no placeholders or unfinished features. - README with project overview, setup, environment variables, database setup, run commands, and deployment instructions. - Configuration files for development, testing, and production. - Database migrations and optional seed data. - API documentation or endpoint reference. - Docker and docker-compose configuration. - CI/CD pipeline or deployment instructions. - Test suite and instructions to run tests. IMPLEMENTATION RULES: - Build real working features, not mockups or placeholder code. - Implement every required feature completely. - Handle errors gracefully with meaningful user-facing messages. - Use clean, modular, maintainable, and well-organized code. - Avoid deprecated libraries, insecure patterns, and unnecessary dependencies. - If information is missing, state assumptions clearly before implementing. - Do not claim that a feature works unless it is implemented and verified through tests or a runnable flow. - If the task is too large for one response, create a phased implementation plan first, then implement phase by phase. OUTPUT: 1. Start with a short architecture plan, technology decisions, and project structure. 2. Then implement the application phase by phase. 3. After each phase, summarize what was completed and what remains. 4. At the end, provide: - Completed features - Files created - Database schema - API endpoints - Tests run - Setup instructions - Known limitations - Recommended next improvements