62 lines
1.1 KiB
Markdown
62 lines
1.1 KiB
Markdown
# 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 .
|
|
``` |