# nuxt4-aigent **Repository Path**: calais/nuxt4-aigent ## Basic Information - **Project Name**: nuxt4-aigent - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-23 - **Last Updated**: 2026-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 【中高级】基于 Nuxt.js、Docker、Prisma、LangChain.js 快速实现一个AI Agents应用基础架构,说说你的核心架构与设计 前端界面层 - Vue 框架 - uno 接口层 - server 运维层 - docker Dockerfile 分阶段镜像构建 - docker compose 服务编排 数据操作 - 前期 ORM 切入,**Prisma**/typeorm 1. 安装 `prisma` ``` "@prisma/client": "^7.3.0", "@prisma/adapter-pg": "^7.3.0", "pg": "^8.17.2" "@types/node": "^25.0.10 ", "prisma": "^7.3.0", "dotenv": "^17.2.3" ``` 2. prisma 初始化 ``` npx prisma init ``` 3. prisma 配置`schema` ``` model User { id Int @id @default(autoincrement()) // 主键自增长 email String @unique name String? } ``` 4. prisma 生成`datasource` ``` npx prisma generate ``` 5. prisma 同步数据库 ``` npx prisma db push ``` AI 层 - 模型云供应商 - 阿里百炼 【qwen-plus】 - 火山字节 【豆包】 - 中转平台,openai、gemini - 本地部署 - ollama - mstudio - wisper ## Setup Make sure to install dependencies: ```bash # npm npm install # pnpm pnpm install # yarn yarn install # bun bun install ``` ## Development Server Start the development server on `http://localhost:3000`: ```bash # npm npm run dev # pnpm pnpm dev # yarn yarn dev # bun bun run dev ``` ## Production Build the application for production: ```bash # npm npm run build # pnpm pnpm build # yarn yarn build # bun bun run build ``` Locally preview production build: ```bash # npm npm run preview # pnpm pnpm preview # yarn yarn preview # bun bun run preview ``` Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.