zhangwl c1ae0b39ea feat:添加线上发布操作 1 month ago
..
public 1d468bfe17 first commit 4 months ago
src 5e40b2fcd6 feat:添加附件图片、视频媒介,进行AI对话 1 month ago
.env 67c01dcf35 feat:修改域名 2 months ago
README.md c1ae0b39ea feat:添加线上发布操作 1 month ago
favicon.ico 1d468bfe17 first commit 4 months ago
index.html 1d468bfe17 first commit 4 months ago
package-lock.json 1d468bfe17 first commit 4 months ago
package.json 1d468bfe17 first commit 4 months ago
tsconfig.app.json 1d468bfe17 first commit 4 months ago
tsconfig.json 1d468bfe17 first commit 4 months ago
tsconfig.node.json 1d468bfe17 first commit 4 months ago
vite.config.ts 1d468bfe17 first commit 4 months ago

README.md

Chat AI 用户界面

这是 Chat AI 应用的前端部分。它是一个基于 Vue.js 3 的应用程序,通过自定义 API 与 Stream Chat、您的 Neon PostgreSQL 数据库和 Open AI 进行交互。

线上发布操作

  1. 打包前端代码 a.运行 npm install b.打包运行 npm run build
  2. 发布,线上服务器 172.17.240.75 和 172.17.240.80
  3. 地址: /data01/aichat/dist
  4. 直接替换

安装说明

  1. 克隆仓库
  2. 运行 npm install
  3. 在根目录创建 .env 文件并添加以下环境变量:
  4. 打包运行 npm run build

    VITE_API_URL=http://localhost:8000
    
  5. Run the server with npm run dev and open on http://localhost:5173/