Automatically synced with your v0.app deployments
ProductMaster 是一个基于 AI 的产品研创智能体平台,帮助用户从创意到实现完成产品开发。该平台提供智能化的产品创作工具、指南和社区支持。
This repository will stay in sync with your deployed chats on v0.app. Any changes you make to your deployed app will be automatically pushed to this repository from v0.app.
Your project is live at:
https://vercel.com/andys-projects-9b85be1a/v0-algo-trading-platform
Continue building your app on:
https://v0.app/chat/projects/0l7GoCxk0vE
📚 完整开发文档: docs/README.md
- 框架: Next.js 14 (App Router)
- UI库: Tailwind CSS + Radix UI + Framer Motion
- 语言: TypeScript
- AI集成: DeepSeek (deepseek-chat) via OpenAI-compatible API
- 数据库: Supabase
npm run dev # 启动开发服务器
npm run build # 构建生产版本
npm run start # 启动生产服务器
npm run lint # 代码检查DEEPSEEK_API_KEY(必填):DeepSeek API 密钥DEEPSEEK_BASE_URL(可选):默认https://api.deepseek.com;也可设置为https://api.deepseek.com/v1DEEPSEEK_MODEL(可选):默认deepseek-chatDEEPSEEK_MAX_TOKENS(可选):默认8192DEEPSEEK_TEMPERATURE(可选):默认0.7
使用 node scripts/test-deepseek.mjs 可进行快速连通性检测,确认密钥与模型配置正确。
- Create and modify your project using v0.app
- Deploy your chats from the v0 interface
- Changes are automatically pushed to this repository
- Vercel deploys the latest version from this repository
若要启用自助注册登陆,请在 Supabase 中执行以下步骤:
- 运行
database-schema-v2.sql第 6-8 节,创建auth_users表、为sessions增加owner_id/title_generated字段,并生成chat_messages表。 - 在项目环境变量里新增
AUTH_SESSION_SECRET(建议 32+ 位随机字符串),用于签名服务端会话。 - 前端默认保留
builder / craft-mode演示账号,方便在未完成配置前继续访问。
GET /api/session/list:拉取当前账号的会话列表。POST /api/session/new:创建新聊天,自动设为当前会话。GET /api/chat/history?sessionId=:加载历史对话,支撑上下文延续。DELETE /api/session/{sessionId}:删除指定聊天(需当前用户为会话所有者)。