A modern, full-featured task management system built with React, TypeScript, and Tailwind CSS. Features a drag-and-drop Kanban board, sprint planning, and role-based access control.
# Install dependencies npm install # Start development server npm run dev # Build for production npm run build
Access the app at: http://localhost:5173
All demo accounts use password: password123
- Admin: [email protected]
- Manager: [email protected]
- Developer: [email protected]
- โ Authentication - Login with role-based access
- โ Dashboard - Overview with statistics and recent tasks
- โ Kanban Board - Drag-and-drop task management across 5 statuses
- โ Task Filtering - Filter by sprint, priority, status
- โ Task Cards - Priority badges, assignee avatars, due dates, overdue indicators
- โ Mock API - Complete mock data layer that can easily switch to real backend
- โ Responsive Design - Works on desktop and mobile
- โณ Task Create/Edit Form
- โณ Task Details with History & Comments
- โณ Sprint Management Page
- โณ My Tasks View
- โณ File Attachments
- โณ Real-time Notifications
- React 18 + TypeScript
- Tailwind CSS - Styling
- React Router v6 - Navigation
- @dnd-kit - Drag & drop
- date-fns - Date formatting
- Vite - Build tool
src/
โโโ components/ # UI components (common, layout, tasks, kanban)
โโโ contexts/ # React Context (Auth, Task, Sprint)
โโโ services/ # API services (mock + real implementations)
โโโ types/ # TypeScript definitions
โโโ pages/ # Page components
โโโ App.tsx # Main app with routing
See PROJECT_SUMMARY.md for detailed documentation.
- Open
src/services/apiConfig.ts - Change:
export const USE_MOCK_API = false; export const API_BASE_URL = 'http://your-api-url/api';
That's it! All services automatically switch to real API calls.
Authentication:
POST /api/auth/loginGET /api/auth/mePOST /api/auth/logout
Tasks:
GET /api/tasks(with filters)GET /api/tasks/:idPOST /api/tasksPUT /api/tasks/:idPATCH /api/tasks/:id/statusDELETE /api/tasks/:id
Sprints:
GET /api/sprintsPOST /api/sprintsPUT /api/sprints/:id
Users:
GET /api/users
See service files in src/services/ for complete request/response formats.
The TypeScript types match the expected database schema:
- Users - Authentication and profile data
- Sprints - Sprint planning with dates and status
- Tasks - Full task details with assignments and tracking
- TaskHistory - Complete audit trail
- Comments - Task discussions
- Attachments - File uploads (structure ready)
- Smooth drag-and-drop between columns
- Optimistic UI updates
- Visual feedback during drag
- Color-coded priority system
- Overdue task warnings
- Real-time statistics
- Active sprint overview
- Recent task activity
- Quick navigation
- Secure JWT-based auth
- Protected routes
- Auto-session restore
- Multiple role support
- Admin - Full system access
- Manager - Sprint and task management
- Developer - Task execution
- Reporter - Task creation and tracking
# Install dependencies npm install # Start dev server with hot reload npm run dev # Type checking npm run tsc # Linting npm run lint # Build for production npm run build # Preview production build npm run preview
All API services follow the same pattern:
// Service automatically switches based on USE_MOCK_API import { taskService } from './services/taskService'; // Works with both mock and real API const tasks = await taskService.getTasks({ status: 'InProgress' });
Mock services include realistic delays to simulate network latency.
- Create components in appropriate folders
- Use TypeScript types from
src/types/ - Follow existing patterns for services
- Use Tailwind CSS for styling
- Keep components small and reusable
MIT
Need help? Check PROJECT_SUMMARY.md for detailed implementation guide and architecture overview.