Files
Nexus/.cursorrules
T

45 lines
1.5 KiB
Plaintext
Raw Normal View History

# Nexus 6.0 — Cursor 速查
2026-06-01 11:54:11 +08:00
> SSOT: [docs/project/nexus-functional-development-guide.md](docs/project/nexus-functional-development-guide.md)
> Handoff: [docs/project/AI-HANDOFF-2026-06-03.md](docs/project/AI-HANDOFF-2026-06-03.md)
2026-06-01 11:54:11 +08:00
## 栈
2026-06-01 11:54:11 +08:00
FastAPI + Async SQLAlchemy + Redis · Vue 3 + Vuetify 4 SPA14 页)· Vite → `web/app/`
2026-06-01 11:54:11 +08:00
## 环境(勿在仓库写密码)
2026-06-01 11:54:11 +08:00
- 生产: `https://api.synaglobal.vip` · 端口 8600 · `ssh nexus`
- 本地: `~/Nexus` 或 `$NEXUS_ROOT` · 见 [linux-dev-paths.md](docs/project/linux-dev-paths.md)
- 凭据: 仅 `.env`(不入 git
- **Gitea**clone/pull 可匿名;**push** 用 `bash scripts/git-push.sh`(凭据在 `deploy/nexus-1panel.secrets.sh`,已 gitignore,勿提交)
2026-06-01 11:54:11 +08:00
## 关键路径
2026-06-01 11:54:11 +08:00
| 用途 | 路径 |
|------|------|
| 后端入口 | `server/main.py` |
| 前端路由 | `frontend/src/router/index.ts` |
| API 客户端 | `frontend/src/api/index.ts` |
| Sync | `server/api/sync_v2.py` |
| 门控 | `deploy/pre_deploy_check.sh` |
| 本地验证 | `bash scripts/local_verify.sh` |
2026-06-01 11:54:11 +08:00
## 铁律
2026-06-01 11:54:11 +08:00
见 `.cursor/rules/perfect-implementation.mdc` · `nexus-security.mdc` — 完美实现、无静默吞错、无明文密钥、CUD 审计。
2026-06-01 11:54:11 +08:00
## 部署
2026-06-01 11:54:11 +08:00
```bash
bash deploy/pre_deploy_check.sh && bash deploy/deploy-production.sh
2026-06-01 11:54:11 +08:00
```
前端: `cd frontend && npx vite build` → tar/scp(见 `deploy/deploy-frontend.sh`
2026-06-01 11:54:11 +08:00
## 进度条(改代码时输出)
2026-06-01 11:54:11 +08:00
```
□实现 □本地验证 □审计8步 □部署 □健康检查 □浏览器验证 □changelog
2026-06-01 11:54:11 +08:00
```