Skip to content

chore: dev compose + CI#16

Merged
DankerMu merged 1 commit into
mainfrom
chore/dev-compose-ci
Feb 12, 2026
Merged

chore: dev compose + CI#16
DankerMu merged 1 commit into
mainfrom
chore/dev-compose-ci

Conversation

@DankerMu
Copy link
Copy Markdown
Owner

变更

  • 新增 docker-compose.yml:dev 一键启动前后端(SQLite,前端通过 VITE_API_BASE_URL=http://localhost:8000/api 直连后端)
  • 新增 GitHub Actions:backend pytest;frontend npm ci + lint + test
  • README 启动命令对齐真实入口:uvicorn app.main:app --reload
  • 后端 Settings 支持 env 覆盖(DATABASE_URL/UPLOAD_DIR/INDEX_DIR/CORS_ORIGINS/CORS_ALLOW_CREDENTIALS),并默认关闭 CORS credentials;wildcard origin 时强制禁用 credentials
  • 新增 .env.example(backend/frontend)

测试

  • backend: backend/.venv/bin/pytest -q
  • frontend: npm test
  • frontend: npm run lint

备注

  • 我尝试用 Python 3.11 新建 venv 并安装依赖,但本机 pip 的 HTTPS 证书校验失败(镜像/CA 配置问题),因此后端测试使用现有 backend/.venv 跑通。

Align README startup commands, add docker-compose dev stack, and introduce GitHub Actions CI for backend/frontend. Also make backend settings env-overridable and tighten default CORS credentials behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DankerMu DankerMu merged commit 7712802 into main Feb 12, 2026
2 checks passed
@DankerMu DankerMu deleted the chore/dev-compose-ci branch February 12, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant