Files
tp-ems/README.md
Du Wenbo bc814e5a7a tp-ems v1.0.0: 天普大兴园区EMS客户项目
基于 ems-core v1.0.0,包含:
- customers/tianpu/config.yaml — 天普品牌配置和功能开关
- scripts/seed_data.py — 天普设备、用户、告警、充电桩种子数据
- docker-compose.override.yml — 天普部署配置
- core/ — ems-core v1.0.0 (git subtree)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 18:18:48 +08:00

31 lines
1.2 KiB
Markdown
Raw Permalink 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.
# 天普大兴园区 智慧能源管理平台 (tp-ems)
## 项目说明
天普大兴园区EMS客户定制项目基于 ems-core 标准产品。
## 目录结构
- `core/` — EMS核心代码通过git subtree引入勿直接修改
- `customers/tianpu/` — 天普专属配置(设备、计费、品牌)
- `scripts/` — 天普数据初始化脚本
- `.env.example` — 环境变量模板
## 快速开始
1. 复制环境配置:`cp .env.example core/backend/.env`
2. 安装后端依赖:`cd core/backend && pip install -r requirements.txt`
3. 初始化数据库:`cd core/backend && python -m alembic upgrade head`
4. 导入种子数据:`cd scripts && python seed_data.py`需先cd回项目根目录的scripts
或者:`cd 项目根目录 && python scripts/seed_data.py`
5. 启动后端:`cd core/backend && python -m uvicorn app.main:app --port 8000 --reload`
6. 启动前端:`cd core/frontend && npm install && npm run dev`
7. 访问http://localhost:3000admin / admin123
## 更新核心代码
当 ems-core 发布新版本时:
```
git subtree pull --prefix=core http://192.168.1.77:3300/tianpu/ems-core.git v1.1.0 --squash
```
## 当前核心版本
查看 `core/VERSION` 文件。