Files
chatgpt-ui/docs/zh/guide/development.md

62 lines
1013 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 开发指南
## 前端
所需技能:[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 .
```