完成 Next.js 14+ 全栈应用的 MVP 实现,包含以下功能: ## 项目设置 - 初始化 Next.js 14+ 项目,配置 TypeScript 严格模式 - 配置 Tailwind CSS、ESLint、Prettier 代码质量工具 - 集成 shadcn/ui 组件库和 next-intl 国际化方案 ## 数据层 - 配置 PostgreSQL + Prisma ORM - 定义 Project、Tag、ExternalLink 数据模型 - 实现种子数据脚本(5个AI项目) ## 用户故事 1:浏览和搜索 AI 项目 - 实现首页,展示热门标签云和精选项目 - 实现项目列表页,支持搜索和标签筛选 - 创建 TagCloud、ProjectCard、ProjectList、SearchBar 组件 - 实现 ISR 缓存策略优化性能 ## 用户故事 2:查看项目详细信息 - 实现项目详情页,显示完整信息 - 创建 ExternalLinkCard 组件展示外部链接 - 实现安全的 target="_blank" 外链跳转 ## 用户故事 4:数据更新和管理 - 实现 webhook API 端点接收 n8n 数据推送 - 实现 API Key 身份验证 - 支持部分成功模式的批量数据处理 - 完善的错误处理和日志记录 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "agent-park-v2",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "vitest",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"next": "15.1.6",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"next-intl": "^4.0.2",
|
|
"@prisma/client": "^6.1.0",
|
|
"zod": "^3.24.1",
|
|
"clsx": "^2.1.1",
|
|
"tailwind-merge": "^2.6.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"lucide-react": "^0.468.0",
|
|
"@radix-ui/react-slot": "^1.1.1",
|
|
"@radix-ui/react-navigation-menu": "^1.2.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
"@radix-ui/react-separator": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"typescript": "^5",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "15.1.6",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"prettier": "^3.4.2",
|
|
"tailwindcss": "^3.4.17",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"postcss": "^8",
|
|
"autoprefixer": "^10.4.20",
|
|
"prisma": "^6.1.0",
|
|
"vitest": "^2.1.8",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"@playwright/test": "^1.49.1",
|
|
"ts-node": "^10.9.2"
|
|
},
|
|
"prisma": {
|
|
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
|
|
}
|
|
}
|