How samysierradv/aluralatam-litealura works
LiterAlura is a console-based book catalog. At startup, the application launches an interactive menu: users can search Gutendex by title, save a returned book and author, then list stored books or authors, filter authors by year alive, and filter books by language. The menu also displays search and query results. The README mentions broader filters and statistics, but the inspected runtime code supports the menu options shown here. The API and persistence flows are supported by sampled source; the database engine is not established by the available evidence.
Main entry points: Principal.java Menu and workflows · ConsumoAPI.java HTTP client · AutorRepository.java Author repository · ConvierteDatos.java JSON converter
Components 13
Console interaction
- Application startup
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/LiterAluraApplication.java - Menu and workflows
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/principal/Principal.java
Book acquisition
- Gutendex API
- HTTP client
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/service/ConsumoAPI.java - JSON converter
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/service/ConvierteDatos.java - Book response DTOs
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/model/DatosBookObject.java
Catalog and persistence
- Book entity
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/model/Libro.java - Author entity
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/model/Autor.java - Language enum
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/model/Idioma.java - Book repository
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/repositry/LibroRepository.java - Author repository
LiterAlura-main/src/main/java/com/aluracursos/LiterAlura/repositry/AutorRepository.java - Catalog database
Other components
- Console user
Connections 17
- Console user → Menu and workflows: enters choices
- Application startup → Menu and workflows: launches menu
- Menu and workflows → Console user: displays results
- Menu and workflows → HTTP client: requests title
- HTTP client → Gutendex API: sends HTTP request
- Gutendex API → HTTP client: returns JSON
- HTTP client → Menu and workflows: returns response
- Menu and workflows → JSON converter: parses response
- JSON converter → Book response DTOs: produces DTO
- Menu and workflows → Book entity: creates entity
- Menu and workflows → Author entity: creates entity
- Menu and workflows → Author repository: checks and saves author
- Menu and workflows → Book repository: saves and queries books
- Menu and workflows → Author repository: queries authors
- Book repository → Catalog database: reads and writes
- Author repository → Catalog database: reads and writes
- Book entity → Language enum: uses language