This commit is contained in:
2025-12-25 11:48:21 +08:00
parent 3c6c9f9fbf
commit 145dff7a7e
6 changed files with 488 additions and 42 deletions

30
readme.md Normal file
View File

@@ -0,0 +1,30 @@
# 初始化 uv
```sh
# 创建虚拟环境
uv venv
# 激活虚拟环境
source .venv/bin/activate # Linux/Mac
# 或
.venv\Scripts\activate # Windows
# 安装依赖
uv pip install -r requirements.txt
```
# 安装 Playwright 浏览器
```sh
playwright install chromium
```
# 运行项目
```sh
# 开发环境
uvicorn app:app --reload
# 生产环境
pm2 start ecosystem.config.cjs
```