# SKU生命周期分析系统 - Flask后端 ## 项目结构 ``` project/ ├── app/ │ ├── __init__.py # 应用工厂函数 │ ├── models/ # 数据模型 │ │ ├── __init__.py │ │ └── user.py │ ├── controllers/ # 视图控制器 │ │ ├── __init__.py │ │ └── main.py │ ├── services/ # 业务逻辑层 │ │ ├── __init__.py │ │ ├── analysis_service.py │ │ └── cache_service.py │ ├── templates/ # HTML模板 │ │ └── index.html │ ├── static/ # 静态资源 │ │ ├── css/ │ │ ├── js/ │ │ └── images/ │ └── utils/ # 工具函数 │ ├── __init__.py │ └── decorators.py ├── config.py # 配置文件 ├── requirements.txt # 依赖列表 ├── run.py # 启动脚本 └── tests/ # 测试目录 ├── __init__.py └── test_auth.py ``` ## 启动应用 ```bash python run.py ``` ## 运行测试 ```bash python -m pytest tests/ ```