Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sun-zhenxing/chatgpt-clone
Nuxt3+Vant4+Prisma & MySQL,Nuxt 构建的全栈聊天界面
https://github.com/sun-zhenxing/chatgpt-clone
Last synced: 2 days ago
JSON representation
Nuxt3+Vant4+Prisma & MySQL,Nuxt 构建的全栈聊天界面
- Host: GitHub
- URL: https://github.com/sun-zhenxing/chatgpt-clone
- Owner: Sun-ZhenXing
- Created: 2023-07-29T06:40:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-01T05:14:07.000Z (over 1 year ago)
- Last Synced: 2023-08-08T03:57:06.661Z (over 1 year ago)
- Language: TypeScript
- Homepage: http://139.196.222.129:3010/
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt3 ChatGPT
## 1. 项目介绍
本项目是一个基于 Nuxt3 的聊天机器人示例。
**TODO**:
- [ ] 使用 `useFetch` 封装接口,使用 SSR
- [ ] 完善模型,完善接口内容
- [ ] 提供登录、注册、修改密码等功能
- [ ] 优化组件结构,加快页面加载速度
- [ ] 优化 UI,优化代码结构和注释
- [ ] 完善文档,提供英文 README快速体验:
```bash
git clone https://github.com/Sun-ZhenXing/chatgpt-clone.git
docker-compose up -d
```打开 即可体验。
## 2. 环境要求
需要安装 `pnpm` 8+,且要求 Node.js >= 16,安装方法:
```bash
npm i -g pnpm
```或者在启用 `corepack` 时使用 `corepack` 安装最新版本:
```bash
corepack prepare pnpm@latest --activate
```安装依赖:
```bash
pnpm i
```升级全部依赖项目:
```bash
pnpm up
```删除不需要的依赖:
```bash
pnpm store prune
```## 3. 开发和部署
开发:
```bash
pnpm dev
```构建:
```bash
pnpm build
```静态构建:
```bash
pnpm generate
```Docker Compose 部署:
```bash
docker-compose up -d
```重新部署:
```bash
docker-compose down
docker builder prune -a -f
docker-compose up -d
```