feat: add four new student modules (rotation, skill-video, exam-prep, academic) with backend APIs and frontend pages; add exam-prep question history with DB persistence

This commit is contained in:
freedakgmail
2026-06-04 11:50:25 +08:00
commit 995f4ecfbd
399 changed files with 73529 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# 应用配置
APP_PORT=3000
NODE_ENV=development
# 持久化开关:true 时启用 PostgreSQLTypeORM)持久化,否则各模块使用内存实现
# (内存实现无需数据库,供测试与本地快速启动)。
DB_ENABLED=false
# 认证(JWT):生产环境必须设置高强度 JWT_SECRET;未设置时回退到仅供本地开发的默认值。
JWT_SECRET=college-ai-center-dev-secret-change-me
JWT_EXPIRES_IN_SECONDS=7200
# 跨域:前端联调来源;留空则放开(开发用)。生产应设为具体来源。
# CORS_ORIGIN=http://localhost:3001
# PostgreSQL 数据库连接(仅 DB_ENABLED=true 时使用)
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE=college_ai_center
# 是否自动同步数据库结构(仅开发环境使用,生产环境请使用迁移)
DB_SYNCHRONIZE=false
DB_LOGGING=false