How evincere/mpd_concursos works
Main Components
– User Interface (e.g., Portal de Postulante, Panel Administrativo, Examenes, etc.)
– Core Services (authentication, concursos management, document handling, and notifications)
– Electron integration (for desktop build)
• Backend System: Represent the “concurso-backend” project running on Spring Boot. Within this, show:
– REST Controllers (e.g., AuthController, ContestController, DocumentController, NotificationController, etc.)
– Application/Service Layer (use cases, business logic for auth, inscription, exam, education, etc.)
– Domain Layer (entities, value objects, exceptions; e.g., User, Contest, Notification, Jwt, etc.)
– Infrastructure/Repository Layer (data persistence with MySQL, in-memory adapters, file/document storage, etc.)
– Security Components (JWT filters, security config, authentication provider)
• External & Supporting Components: Include the document storage (which may physically reside in a file system as indicated by the “document-storage-dev” folder), Docker (Dockerfile for backend and docker-compose.yml), and build tools (Maven and npm).
Relationships and Interactions
– Controllers ⇨ Application Services (use cases)
– Application Services ⇨ Domain/Model (business logic)
– Domain ⇨ Infrastructure (repositories for persistence in MySQL and document storage)
• That authentication is handled using JWT: both the frontend sends JWT tokens to secure endpoints, and backend security components (e.g., JwtTokenFilter) validate incoming tokens.
• Backend to the MySQL database (and possibly highlight the use of schema.sql and data.sql for initializing data).
• Integration of external concerns such as file/document storage (using the FileSystemDocumentStorageService) and external notifications.
Architectural Patterns and Design Principles
• Layered/MVC Architecture: The backend is organized into clear layers (REST Controllers, Application Services/Use Cases, Domain Models, Infrastructure adapters).
• Separation of Concerns: The division into modules (auth, contest, examination, document, education, inscription, etc.) shows a good modular design.
• Security by Design: Encompassing security configurations (using JWT, role-based checks, and cross-layer validations).
• Client–Server Communication: The Angular frontend communicates with the Spring Boot backend via RESTful endpoints.
• Optional Electron Wrapper: Highlight the Electron module in the frontend, which bundles the web app into a desktop application.
Relevant Technologies
• Backend: Spring Boot, Java 17, Maven, JWT, MySQL.
• Frontend: Angular, Material Design, SCSS, TypeScript, Electron.
• Deployment/DevOps: Docker (Dockerfile, docker-compose.yml), Maven Wrapper.
• Development Tools: Eclipse (as visible by .metadata files), VSCode configurations.