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

62
docs/guide/development.md Normal file
View File

@@ -0,0 +1,62 @@
# Development Guide
## Front-end
Required skills: [Vue](https://vuejs.org/), [Nuxt](https://nuxt.com/)
Project address: [https://github.com/WongSaang/chatgpt-ui](https://github.com/WongSaang/chatgpt-ui)
### Environment Setup
Install the latest stable version of node.js. If you need to package it as a docker image, you also need to install docker.
### Install dependencies
```
yarn install
```
### Start development server
```
yarn dev
```
### Build
```
yarn build
```
### Package as a docker image
```
docker build -t image-name:latest .
```
## Back-end
Required skills: [Python](https://www.python.org/), [Django](https://djangoproject.com/)
Project address: [https://github.com/WongSaang/chatgpt-ui-server](https://github.com/WongSaang/chatgpt-ui-server)
### Environment Setup
Install Python, pip/pipenv. If you need to package it as a docker image, you also need to install docker.
### Install dependencies
```
pip install -r requirements.txt
```
### Start development server
```
python manage.py runserver
```
### Package as a docker image
```
docker build -t image-name:latest .
```