Migration v1 (Flask) -> v2 (FastAPI + Vue.js) complétée
✨ Changements majeurs: - Suppression complète du code Flask legacy - Migration backend FastAPI vers racine /backend - Migration frontend Vue.js vers racine /frontend - Suppression de notytex-v2/ (code monté à la racine) ✅ Validations: - Backend démarre correctement (port 8000) - API /api/v2/health répond healthy - 99/99 tests unitaires passent - Frontend configuré avec proxy Vite 📝 Documentation: - README.md réécrit pour v2 - Instructions de démarrage mises à jour - .gitignore adapté pour backend/frontend/ 🎯 Architecture finale: notytex/ ├── backend/ # FastAPI + SQLAlchemy + Pydantic ├── frontend/ # Vue 3 + Vite + TailwindCSS ├── docs/ # Documentation └── school_management.db # Base de données (inchangée) Jalon 6 complété: Application v2 prête pour utilisation!
This commit is contained in:
56
backend/domain/services/__init__.py
Normal file
56
backend/domain/services/__init__.py
Normal file
@@ -0,0 +1,56 @@
|
||||
"""
|
||||
Services du domaine métier.
|
||||
|
||||
Ces services encapsulent la logique métier pure, sans dépendances
|
||||
aux frameworks web ou à la base de données.
|
||||
"""
|
||||
from .grading_calculator import (
|
||||
GradingCalculator,
|
||||
GradingStrategy,
|
||||
GradingStrategyFactory,
|
||||
NotesStrategy,
|
||||
ScoreStrategy,
|
||||
)
|
||||
from .statistics_service import StatisticsService
|
||||
from .score_calculator import (
|
||||
StudentScoreCalculator,
|
||||
ProgressCalculator,
|
||||
GradeData,
|
||||
StudentData,
|
||||
)
|
||||
from .config_service import (
|
||||
ConfigService,
|
||||
SpecialValueConfig,
|
||||
ScoreMeaning,
|
||||
GradingTypeConfig,
|
||||
)
|
||||
from .student_report_service import (
|
||||
StudentReportService,
|
||||
StudentReportData,
|
||||
generate_report_html,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Grading Calculator
|
||||
"GradingCalculator",
|
||||
"GradingStrategy",
|
||||
"GradingStrategyFactory",
|
||||
"NotesStrategy",
|
||||
"ScoreStrategy",
|
||||
# Statistics
|
||||
"StatisticsService",
|
||||
# Score Calculator
|
||||
"StudentScoreCalculator",
|
||||
"ProgressCalculator",
|
||||
"GradeData",
|
||||
"StudentData",
|
||||
# Config
|
||||
"ConfigService",
|
||||
"SpecialValueConfig",
|
||||
"ScoreMeaning",
|
||||
"GradingTypeConfig",
|
||||
# Student Reports
|
||||
"StudentReportService",
|
||||
"StudentReportData",
|
||||
"generate_report_html",
|
||||
]
|
||||
Reference in New Issue
Block a user