Files
digital-psychology/CONTRIBUTING.md
T
jackyu66gitandCursor 0f320e040b feat: P1 profile/portrait API and freeze local-dev environment
Add host-first environment contracts (Local vs CI vs Prod), deps-only
compose, and the Profile → Portrait → deep-access mock payment slice
with device identity and auto-migrate on API startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 16:24:57 +08:00

41 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CONTRIBUTING
## AI-first
本仓库由 [`.ai/`](.ai/) 约束。入口:[AGENTS.md](AGENTS.md)。
环境分流(必读):
- [`.ai/environment.md`](.ai/environment.md) — Local / CI / Prod 分离
- [`.ai/development.md`](.ai/development.md) — 本地本机 Go + Vite
- [`.ai/docker.md`](.ai/docker.md) — Docker 只做依赖与部署
- [`.ai/deployment.md`](.ai/deployment.md) — 生产不可变镜像
## Local(默认)
```bash
# 1) 依赖服务 only
docker compose -f docker-compose.dev.yml up -d
# 2) API — 本机 Go(不要 docker build api
export GOPROXY=https://goproxy.cn,direct # 如需要
cd apps/api && go run ./cmd/server
# 可选热更: air
# 3) H5 — 本机 Vite(不要 docker build web
npm install && npm run dev:h5
```
- API: http://127.0.0.1:8080/api/v1/healthz
- H5: http://127.0.0.1:5173
## Git
Trunk-BasedConventional Commits`feat:` / `fix:` / `docs:` …)。
## PR
- 一个功能点。
- API 变更同步 `proto/openapi.yaml`
- 勿把「本地必须全量 compose 起 api/web」写进新文档。