docs: update readme

This commit is contained in:
JustSong 2023-04-24 20:54:58 +08:00
parent d12d7ae50d
commit 32fdfd1be9

View File

@ -70,13 +70,13 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
```shell ```shell
git clone https://github.com/songquanpeng/one-api.git git clone https://github.com/songquanpeng/one-api.git
# 构建 Web 前端产物 # 构建前端
cd one-api/web cd one-api/web
npm install npm install
npm run build npm run build
# 构建 Go 后端 # 构建后端
cd .. # 回到项目根目录 `one-api` cd ..
go mod download go mod download
go build -ldflags "-s -w" -o one-api go build -ldflags "-s -w" -o one-api
```` ````