How lulwszabolcs/a-projekt works
Frontend (aiport_frontend)
• Developed with React and Vite.
• Contains components for login, home page, error management, vehicle and worker management, profile viewing, sidebar navigation, and support modules.
• Uses context providers for managing state (e.g., for images, notes, problems, vehicles, workers, etc.).
• Relies on CSS and Mui for styling.
Backend (airport_backend)
• Built on Spring Boot.
• Implements RESTful controllers for different modules (authentication, notes, problems, vehicles, workers, etc.).
• Follows a layered architecture, with clear separations:
– Controllers: Handle incoming HTTP requests (e.g., CheckPermissionController, NoteController, ProblemController, etc.).
– Services: Business logic is encapsulated here (e.g., EmailService, VehicleService, WorkerService, etc.).
– Repositories: Data access using JPA with MySQL (e.g., UserRepository, VehicleRepository, etc.).
– Models, DTOs, Converters, and Enumerations: Define domain entities, control data flows, and manage type safety.
– Security components: JWT token provider, filters, and configuration classes handle authentication and authorization.
– Exception Handlers: Exception handling classes that standardize error responses.
• Database migrations are handled via SQL scripts found under src/main/resources/db/changelog with a master.xml to orchestrate changes. This indicates an emphasis on managing the persistence schema carefully.
• Frontend Client
• React Application using components (Login, Homepage, Sidebar, etc.)
• Context Providers (state management for images, notes, problems, vehicles, workers)
• Backend Server
• REST Controllers handling distinct domains (Authentication; Image, Note, Problem, User, Vehicle, Worker management)
• Services layers that encapsulate business logic
• Data Access Layers (Repositories interfacing with the MySQL database)
• Security Modules (JWTTokenProvider, filters & configurations for auth)
• Exception and Converters modules
• Database
• MySQL database
• Migration scripts managed via Liquibase-style changelogs (SQL scripts and master.xml)
• DevOps & Configuration:
• Build scripts (mvnw, npm scripts)
• Environment configuration via application.yml/properties on backend and environment variable files on frontend.
• External Services and Libraries:
• Integration with a large language model (grok-2-vision-1212) as noted.
• Swagger documentation (SwaggerConfiguration class) for API documentation.
Architectural patterns and design principles
• Layered architecture (presentation/controller, service, repository) evident in the backend.
• Separation of concerns between the frontend and backend.
• Use of MVC/MVVM in the frontend’s component organization.
• Security best practices are implemented with JWT-based authentication and proper exception handling.
Additional deployment and integration aspects
• Build and startup instructions (node package installations, Vite development server, IntelliJ IDEA for Spring Boot) as part of the system flow if needed.