Create a full-stack task management application called TaskFlow.Backend:- Express.js server with TypeScript- SQLite database with better-sqlite3- RESTful API: CRUD for tasks and projects- Input validation with zodFrontend:- React 18 with TypeScript- Vite for bundling- Tailwind CSS for styling- React Query for data fetchingSet up the monorepo structure with packages/api and packages/web.Use a root package.json with workspaces.
Claude Code 會花 3-5 分鐘處理這個任務。您會看到它建立目錄、撰寫設定檔和安裝相依性。這是個放下手機的好時機——Tactic Remote 會在任務完成或需要核准時通知您。
注意事項: Claude Code 可能會請求核准執行 npm install。從通知中核准——它正在安裝您專案的相依性。
Create the database schema and models:Tables:- projects: id, name, description, color (hex), created_at, updated_at- tasks: id, project_id (FK), title, description, status (todo/in_progress/done), priority (low/medium/high/urgent), due_date, created_at, updated_atInclude:- Migration system that runs on server start- Type-safe model layer with full TypeScript types- Seed data: 2 sample projects with 5 tasks each
Implement the full REST API:Projects:- GET /api/projects (list all, with task counts)- POST /api/projects (create, validate with zod)- PUT /api/projects/:id (update)- DELETE /api/projects/:id (cascade delete tasks)Tasks:- GET /api/projects/:id/tasks (list by project, support ?status= filter)- POST /api/projects/:id/tasks (create with validation)- PUT /api/tasks/:id (update, including status transitions)- DELETE /api/tasks/:idInclude proper error handling with consistent error response format.Add request logging middleware.
核准提示: Claude Code 可能會請求核准修改多個檔案。在核准卡片中查看檔案清單——應該限制在您專案的 packages/api/ 目錄內。如果您看到任何超出此範圍的檔案,請拒絕並釐清提示。
Write integration tests for all API endpoints using vitest and supertest.Test both success cases and error cases (invalid input, not found, etc.).Run the tests and report results.
Build the frontend UI:1. Layout with sidebar (project list) and main area (task board)2. ProjectList component: shows projects with task counts and color indicators3. TaskBoard component: kanban-style columns for todo/in_progress/done4. TaskCard component: shows title, priority badge, due date5. Drag-and-drop between columns to change task statusUse React Query for all data fetching. Show loading skeletons.Style with Tailwind - clean, modern look with the project color as accent.
Add interactive features:1. Create Project modal: name, description, color picker2. Create Task modal: title, description, priority selector, due date picker3. Inline task editing: click to edit title, click priority to cycle through levels4. Delete confirmation dialogs for projects and tasks5. Toast notifications for successful operationsAll forms should validate input and show helpful error messages.
Polish the UI:1. Make everything fully responsive (mobile-friendly at 375px+)2. Add empty states for projects and tasks (with calls-to-action)3. Add a search/filter bar: filter tasks by title or status4. Add keyboard shortcuts: N for new task, / for search5. Add subtle animations for card transitions and modal open/closeFix any visual issues you notice.
Verify the complete application:1. Start the API server and frontend2. Create a new project through the UI3. Add several tasks with different priorities4. Move tasks between columns5. Edit and delete tasks6. Test responsive layout at mobile sizes7. Report any issues found and fix themProvide the final URLs to access the application.
Create a README.md in the project root with:1. Project description and screenshot placeholder2. Tech stack overview3. Getting started instructions (install, run, test)4. API endpoint documentation with example requests/responses5. Project structure explanation