How rafapcjs/bibliotech- works
• Client / Web Interface: Although this is not a separate “frontend” directory, note that the README mentions an “Interfaz web intuitiva” which implies the existence of a web client that interacts with your API.
• API Layer (Presentation Layer): Represented by the various controllers in the “presentation” packages (e.g., AuthorController, BookController, CategoryController). These manage incoming HTTP requests.
• Service Layer (Business Logic Layer): Each domain (books, authors, categories) has a corresponding service interface and implementation, such as IAuthorService with AuthorServiceImpl, encapsulating business rules.
• Data Access / Persistence Layer: This includes the “persistencie” packages with entities and their repositories (for example, Author, Book, Category entities and their respective repositories) that interact with the database.
• Common/Utility Components: Represent shared aspects like exception handling, configuration (SwaggerConfig, CorsConfig, jpa auditing), and response formatting (ApiResponse, ApiError).
• A connection from the Repository layer to the Database (labeled PostgreSQL/MySQL) to demonstrate persistent storage.
Architectural design and patterns
• Screaming Architecture: Emphasize that each package (books, authors, categories, etc.) clearly “screams” its purpose. This means grouping by domain instead of technical layers exclusively.
• MVC-Like Organization: Although it’s built with Spring Boot, the separation between controllers (presentation), services (business logic), and repositories (data access) is clear.
• Dependency Injection and Configuration: Note that configuration files (application.yml and various utility config classes) bind these layers and third-party integrations (e.g., Swagger for documenting the API) together.
Technologies and frameworks
• Java 11+ as the runtime base.
• Spring Boot as the core framework to build the RESTful API.
• PostgreSQL/MySQL as the backing database.
• Swagger for API documentation.
• Additionally, mention tools like Maven (pom.xml, mvnw scripts) which serve as the build and dependency management tools.