feat: 初始化考培练系统项目
- 从服务器拉取完整代码 - 按框架规范整理项目结构 - 配置 Drone CI 测试环境部署 - 包含后端(FastAPI)、前端(Vue3)、管理端 技术栈: Vue3 + TypeScript + FastAPI + MySQL
This commit is contained in:
0
backend/requirements/__init__.py
Normal file
0
backend/requirements/__init__.py
Normal file
34
backend/requirements/base.txt
Normal file
34
backend/requirements/base.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
# Core dependencies
|
||||
fastapi==0.104.1
|
||||
uvicorn[standard]==0.24.0
|
||||
pydantic==2.5.0
|
||||
pydantic-settings==2.1.0
|
||||
python-multipart==0.0.6
|
||||
python-jose[cryptography]==3.3.0
|
||||
passlib[bcrypt]==1.7.4
|
||||
python-dotenv==1.0.0
|
||||
|
||||
# Database
|
||||
sqlalchemy==2.0.23
|
||||
aiomysql==0.2.0
|
||||
pymysql==1.1.0
|
||||
alembic==1.12.1
|
||||
|
||||
# Redis
|
||||
redis==5.0.1
|
||||
|
||||
# HTTP client
|
||||
httpx==0.25.2
|
||||
aiofiles==23.2.1
|
||||
|
||||
# Logging
|
||||
structlog==23.2.0
|
||||
|
||||
# CORS
|
||||
fastapi-cors==0.0.6
|
||||
|
||||
# Utils
|
||||
python-dateutil==2.8.2
|
||||
|
||||
# Excel文件处理(用于课程资料预览)
|
||||
openpyxl==3.1.2
|
||||
21
backend/requirements/dev.txt
Normal file
21
backend/requirements/dev.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
# Include base requirements
|
||||
-r base.txt
|
||||
|
||||
# Testing
|
||||
pytest==7.4.3
|
||||
pytest-asyncio==0.21.1
|
||||
pytest-cov==4.1.0
|
||||
httpx==0.25.2
|
||||
aiosqlite==0.19.0
|
||||
|
||||
# Code quality
|
||||
black==23.11.0
|
||||
isort==5.12.0
|
||||
flake8==6.1.0
|
||||
mypy==1.7.1
|
||||
types-python-dateutil==2.8.19.14
|
||||
types-redis==4.6.0.11
|
||||
|
||||
# Development tools
|
||||
ipython==8.18.1
|
||||
watchfiles==0.21.0
|
||||
10
backend/requirements/prod.txt
Normal file
10
backend/requirements/prod.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# 包含基础依赖
|
||||
-r base.txt
|
||||
|
||||
# 生产环境监控
|
||||
prometheus-client==0.19.0
|
||||
sentry-sdk[fastapi]==1.39.1
|
||||
|
||||
# 性能优化
|
||||
orjson==3.9.10
|
||||
ujson==5.9.0
|
||||
Reference in New Issue
Block a user