students/README_students.md更新,工具使用说明。

This commit is contained in:
Orangeeee
2026-09-23 04:35:03 +08:00
parent 5dc0c68ca2
commit d2464c7536
+12 -3
View File
@@ -186,7 +186,14 @@ ORM:sqlalchemy
## hermes agent协作内容: ## hermes agent协作内容:
### 1. 测试数据脚本 — init_test_data.py ### 1. 测试数据脚本 — init_test_data.py/seed_data.py
直接正常运行主程序文件 main.py 即可插入
直接插入前提:
1. 保证数据库 student_manage_system 存在
2. 数据表字段对应
3. 建议直接删库建库 students\StudentsQuery.sql 里有相应需求的语句
向数据库插入了完整的测试数据,没有修改任何原有项目文件: 向数据库插入了完整的测试数据,没有修改任何原有项目文件:
数据类型 数据类型
数量 数量
@@ -198,7 +205,7 @@ ORM:sqlalchemy
公司 5 家(字节跳动、阿里巴巴、腾讯、华为、百度) 公司 5 家(字节跳动、阿里巴巴、腾讯、华为、百度)
就业信息 8 条(含薪资、offer时间等) 就业信息 8 条(含薪资、offer时间等)
### 2. 前端页面 — frontend/index.html ### 2. 前端页面 - frontend/index.html - 双击运行
单文件完整前端,包含: 单文件完整前端,包含:
首页:问候 Banner + 快捷卡片(查课表/查成绩/校园卡/报修)+ 校园动态信息流 首页:问候 Banner + 快捷卡片(查课表/查成绩/校园卡/报修)+ 校园动态信息流
@@ -219,12 +226,14 @@ ORM:sqlalchemy
启动后端后直接浏览器打开 frontend/index.html 即可使用。 启动后端后直接浏览器打开 frontend/index.html 即可使用。
### 移植 ### 移植
只动两个文件,都不需要改代码: 只动几个文件,都不需要改代码:
移动的文件: 移动的文件:
seed_data.py → 新项目的根目录
init_test_data.py → 新项目的根目录 init_test_data.py → 新项目的根目录
frontend/ → 新项目的根目录(整个文件夹) frontend/ → 新项目的根目录(整个文件夹)
要改的唯一参数: frontend/index.html 第 306 行 要改的唯一参数: frontend/index.html 第 306 行
const API_BASE = 'http://localhost:59000'; const API_BASE = 'http://localhost:59000';