How bogdan016/mymdb-website works
Main Components
• Frontend/UI Layer: This includes the static HTML pages (index.html, movies.html, actors.html, etc.), CSS files (Styles.css), and associated JavaScript (index.js). It represents the client side which interacts with end users.
• Backend Application (Business Logic): The Java Spring Boot application structured with a clear MVC pattern. This is divided into:
• Controllers (e.g., DistributieController, ExceptiiController, FilmController, PersoanaController, StudioController) which handle HTTP requests.
• Services (e.g., FilmService, StudioService, etc.) containing business logic.
• Repositories (e.g., FilmInterface, StudioInterface, etc.) which handle data access for the underlying entities.
• Entities (e.g., FilmEntity, PersoanaEntity, StudioEntity, etc.) representing the data models.
• Database: A MySQL database (as stated in the README) which is used to persist movie data and related information.
• Build/Deployment: Indicate that Gradle (with build.gradle and gradlew scripts) is used as the build tool, hinting at how the project is compiled and deployed.
Relationships and Data Flow
• How client requests (from the browser) are sent to the Spring Boot backend.
• Within the backend, illustrate the typical flow: an incoming HTTP request is handled by a Controller, which forwards the request to a Service layer. The Service then calls the appropriate Repository to interact with the database.
Architectural Patterns & Design Principles
• MVC pattern within the application’s Java package structure.
• Separation of concerns where each layer (controller, service, repository, entity) has its own responsibility.
• Mention that the project uses Gradle for building and dependency management as an important deployment consideration.
• That the frontend and backend are logically separated – even though they coexist in the same repository, they play distinct roles (one for client-side presentation and one for server-side business logic).
Technologies and Frameworks
• Java Spring Boot as the server framework.
• MySQL as the database engine.
• Mention HTML, CSS, Bootstrap, and jQuery for the client interface.
• Postman for API testing.
• Gradle as the build/deployment tool.