Files
problem-bank/README.md
2026-03-05 11:50:15 +08:00

46 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 网页版题库管理系统
基于 FastAPI + React + SQLite 的题库系统支持题目管理、AI 导入、Excel 导入导出、分类管理、练习模式与统计仪表盘。
## 目录
- `backend/`: FastAPI 后端
- `frontend/`: React 前端
- `analysis.py`: 原始解析脚本(参考)
## 后端启动
1. 安装依赖:
- `cd backend`
- `python3 -m venv .venv && source .venv/bin/activate`
- `pip install -r requirements.txt`
2. 配置环境变量:
- 复制项目根目录 `.env.example``.env`
- 填写 `API_KEY``ADMIN_PASSWORD``JWT_SECRET_KEY`
3. 运行:
- 在项目根目录执行 `uvicorn backend.main:app --reload --port 8000`
## 前端启动
1. 安装依赖:
- `cd frontend`
- `npm install`
2. 运行:
- `npm run dev`
3. 打开:
- `http://127.0.0.1:5173`
## 默认登录
- 用户名:`admin`
- 密码:`admin123`(请在 `.env` 修改)
## 功能清单
- 题目 CRUD、搜索、筛选、批量删除、批量更新
- AI 智能导入PDF/Word -> DMXAPI -> 预览 -> 确认保存)
- Excel 批量导入、模板下载、导出 JSON/CSV/Excel
- 分类树管理(章节/知识点)
- 练习模式(抽题、判题、解析反馈)
- 仪表盘统计(总量、题型、难度、章节、导入历史)