docs: 添加项目启动说明

This commit is contained in:
tian 2026-06-09 17:31:06 +08:00
parent ca8cf02aa4
commit 2d01c763a1

23
STARTUP.md Normal file
View File

@ -0,0 +1,23 @@
# 成本预测系统 - 启动说明
## 环境要求
- Python 3.9 ~ 3.11
## 启动步骤
```bash
# 1. 安装依赖
pip install -e .
# 2. 初始化派生特征数据(首次必须执行)
python -m scripts.calculate_features
# 3. 启动服务
python run.py
```
浏览器打开 **http://127.0.0.1:5001** 即可。
## 附注
- 数据库为 SQLite首次启动自动创建无需安装配置
- 如修改前端代码,需安装 Node.js 后在 `frontend/` 目录执行 `npm install && npm run build`