# 榜单系统 这是一个全栈榜单系统项目,包含后端API服务和前端Vue3应用。 ## 项目结构 ``` rank_backend/ ├── backend/ # 后端代码 │ ├── app.py # Flask应用主文件 │ ├── config.py # 配置文件 │ ├── database.py # 数据库连接 │ ├── Timer_worker.py # 定时任务 │ ├── handlers/ # 业务处理器 │ └── routers/ # 路由定义 ├── frontend/ # 前端Vue3应用 │ ├── src/ # 源代码 │ ├── public/ # 静态资源 │ └── package.json # 依赖配置 └── docs/ # 文档 ├── API接口文档.md └── requirements.txt ``` ## 快速开始 ### 后端服务 ```bash cd backend python3 -m pip install -r ../docs/requirements.txt python3 app.py ``` ### 前端应用 ```bash cd frontend npm install npm run dev ``` ## 开发说明 - 后端使用Flask框架,提供RESTful API - 前端使用Vue3 + Vite构建 - 数据库配置在backend/config.py中 - API文档位于docs/API接口文档.md