How et-tounani/pi_gestion_emplois_temps works
Main Components
• Frontend: Represent the Angular application. This component includes various UI elements (dashboard, add/edit forms, timetable views, widgets such as navbar, login, sidebar, etc.). Indicate that the frontend handles user interactions and displays information.
• Backend: Represent the Java-based application. Break this down further into:
• REST Controllers: (e.g., AuthController, ClasseController, DepartementController, etc.) that expose endpoints.
• Service Layer: Contains business logic, including interfaces and implementations (e.g., IAuthImpl, IClasseServiceImpl, etc.), and a dispatch of requests.
• Data Access Layer (Repositories): (e.g., ClasseRepository, DepartementRepostitory, etc.) which communicate with the persistence layer.
• Domain/Entities: The model objects (e.g., Admin, Classe, Filiere, Module, etc.) define the core data structure.
• Special Algorithm Component: The “GAlgo” package that includes classes like GaAlgorithm and SchoolTimetable; this represents the specialized scheduling algorithm (likely a genetic algorithm) for generating optimal timetables.
• Auxiliary Services: Modules like LoadFormExcelToDb for importing Excel data and PdfExportService for exporting schedule data as PDFs.
Relationships & Data Flows
• The Frontend interacts with the Backend via HTTP/REST calls.
• REST Controllers in the backend call the Service Layer to process business logic.
• The Service Layer interacts with the Repository Layer for CRUD operations on the Database.
• The “GAlgo” module (inside services) collaborates with the system to generate timetables, which are then retrieved by controllers for display.
• There are data flows from Excel importer (LoadFormExcelToDb) to the Database and from the Database to the PDF Exporter.
Architectural Patterns & Technologies
• Layered architecture (presentation (controllers), business logic (services), and data access (repositories)).
• Use of the Genetic Algorithm for schedule generation, which is a key domain-specific feature.
• Technologies: Angular for frontend, Java with Spring Boot and JPA for backend, Maven for build management, and an underlying relational database. Also mention Excel file handling and PDF generation as additional functionalities.