ソースを参照

feat:修改README.md文档,补充mac的相关命令

yangxiaolong 1 ヶ月 前
コミット
17204eb145
1 ファイル変更37 行追加0 行削除
  1. 37 0
      README.md

+ 37 - 0
README.md

@@ -42,6 +42,20 @@
 powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1
 ```
 
+macOS(两个终端):
+
+```bash
+# 终端一
+cd backend
+uv run zbt-serve
+```
+
+```bash
+# 终端二
+cd frontend
+pnpm dev
+```
+
 - H5:http://127.0.0.1:5173
 - 管理后台:http://127.0.0.1:5174
 - API 文档:http://127.0.0.1:8000/docs
@@ -54,6 +68,21 @@ H5 验证码为 `147258`;后台账号及完整操作路径见启动指南。
 powershell -ExecutionPolicy Bypass -File .\scripts\test.ps1
 ```
 
+macOS:
+
+```bash
+cd backend
+uv sync --locked
+uv run pytest
+uv run ruff check .
+uv run mypy src/zbt
+
+cd ../frontend
+pnpm install --frozen-lockfile
+pnpm typecheck
+pnpm build
+```
+
 真实模型评测在后端运行后执行:
 
 ```powershell
@@ -61,3 +90,11 @@ cd backend
 uv run python -m zbt.commands.evaluate_agents --suite smoke
 uv run python -m zbt.commands.evaluate_agents --suite full
 ```
+
+macOS:
+
+```bash
+cd backend
+uv run python -m zbt.commands.evaluate_agents --suite smoke
+uv run python -m zbt.commands.evaluate_agents --suite full
+```