refactor: Add frontend code to DB-GPT (#912)

This commit is contained in:
katakuri
2023-12-11 00:05:42 +08:00
committed by GitHub
parent b8dc9cf11e
commit 43190ca333
189 changed files with 19179 additions and 16 deletions

View File

@@ -166,9 +166,18 @@ python pilot/server/dbgpt_server.py
:::
## Visit website
#### 1. Production model:
Open the browser and visit [`http://localhost:5000`](http://localhost:5000)
#### 2. Development mode:
```
cd web & npm install
cp .env.template .env
// set the API_BASE_URL to your DB-GPT server address, it usually is http://localhost:5000
npm run dev
```
Open the browser and visit [`http://localhost:3000`](http://localhost:3000)