Use Vuepress to generate a static site for docs.

This commit is contained in:
Rafi
2023-04-11 22:08:16 +08:00
parent e9f554dc4e
commit 1d7098a0cb
24 changed files with 1495 additions and 206 deletions

View File

@@ -0,0 +1,62 @@
# 开发指南
## 前端
所需技能:[Vue](https://vuejs.org/)、[Nuxt](https://nuxt.com/)
项目地址:[https://github.com/WongSaang/chatgpt-ui](https://github.com/WongSaang/chatgpt-ui)
### 环境准备
安装最新稳定版 node.js如果需要打包成 docker 镜像,还需要安装 docker。
### 安装依赖
```
yarn install
```
### 启动开发服务
```
yarn dev
```
### 构建
```
yarn build
```
### 打包成 docker 镜像
```
docker build -t image-name:latest .
```
## 后端
所需技能:[Python](https://www.python.org/)、[Django](https://djangoproject.com/)
项目地址:[https://github.com/WongSaang/chatgpt-ui-server](https://github.com/WongSaang/chatgpt-ui-server)
### 环境准备
安装Python、pip/pipenv如果需要打包成 docker 镜像,还需要安装 docker。
### 安装依赖
```
pip install -r requirements.txt
```
### 启动开发服务
```
python manage.py runserver
```
### 打包成 docker 镜像
```
docker build -t image-name:latest .
```