初始化提交

This commit is contained in:
2025-12-13 21:35:46 +08:00
parent 487457e0a9
commit 4573a21f88
54 changed files with 20690 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# 萌芽个人主页 - 后端
基于 Flask 的个人主页后端 API 服务。
## 安装依赖
```bash
pip install -r requirements.txt
```
## 运行服务
```bash
python app.py
```
服务将运行在 `http://localhost:5000`
## API 接口
- `GET /api/profile` - 获取个人基本信息
- `GET /api/projects` - 获取精选项目列表
- `GET /api/contacts` - 获取联系方式
- `GET /api/all` - 获取所有数据
## 数据配置
数据存储在 `data` 目录下的 JSON 文件中:
- `profile.json` - 个人信息
- `projects.json` - 项目列表
- `contacts.json` - 联系方式
可根据需要编辑这些文件来更新网站内容。