chore: initial commit — project scaffold (FastAPI + React + PostgreSQL)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,70 @@
|
||||
请在 /home/enzo/projects/hive-manage-v3/ 下创建以下 4 个文件,内容必须完全一致。
|
||||
|
||||
## 文件 1: .gitignore
|
||||
```
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.env
|
||||
node_modules/
|
||||
dist/
|
||||
.pytest_cache/
|
||||
*.egg-info/
|
||||
venv/
|
||||
.DS_Store
|
||||
```
|
||||
|
||||
## 文件 2: README.md
|
||||
```
|
||||
# Hive Manage v3
|
||||
|
||||
蜂群运维中台 — 58 个 Hermes Agent Profile 的批量管控面板。
|
||||
|
||||
## 技术栈
|
||||
|
||||
- 后端: FastAPI + SQLAlchemy async + PostgreSQL
|
||||
- 前端: React 19 + TypeScript + Tailwind CSS + Vite
|
||||
|
||||
## 快速开始
|
||||
|
||||
见 deploy/ 目录下的部署文档。
|
||||
```
|
||||
|
||||
## 文件 3: backend/pyproject.toml
|
||||
```
|
||||
[project]
|
||||
name = "hive-manage-v3"
|
||||
version = "0.1.0"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"fastapi[standard]>=0.115",
|
||||
"sqlalchemy[asyncio]>=2.0",
|
||||
"asyncpg>=0.30",
|
||||
"alembic>=1.14",
|
||||
"pydantic>=2.10",
|
||||
"pydantic-settings>=2.7",
|
||||
"python-jose[cryptography]>=3.3",
|
||||
"passlib[bcrypt]>=1.7",
|
||||
"httpx>=0.28",
|
||||
"uvicorn[standard]>=0.34",
|
||||
]
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=8.3",
|
||||
"pytest-asyncio>=0.25",
|
||||
"httpx>=0.28",
|
||||
]
|
||||
```
|
||||
|
||||
## 文件 4: backend/.env.example
|
||||
```
|
||||
DATABASE_URL=postgresql+asyncpg://hive_admin:changeme@localhost:5432/hive_manage_v3
|
||||
JWT_SECRET=change-me-to-random-string
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_EXPIRE_MINUTES=1440
|
||||
HERMES_CLI_PATH=/home/enzo/.local/bin/hermes
|
||||
HERMES_PROFILES_ROOT=/home/enzo/.hermes/profiles
|
||||
ADMIN_EMAIL=admin@zhiwei.local
|
||||
ADMIN_PASSWORD=admin123
|
||||
```
|
||||
|
||||
backend 目录如不存在请先创建。创建完成后用 `cat` 验证每个文件内容是否正确。
|
||||
Reference in New Issue
Block a user