Skip to content

Ccirhack/literalura-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiterAlura

Book catalog app built with Spring Boot that integrates with the Gutendex API to search, store and query books and authors in a PostgreSQL database.

Java Spring Boot PostgreSQL Jackson

Features

# Option Description
1 Search book by title Queries Gutendex API and saves result to DB
2 List saved books Shows all books stored in the database
3 List saved authors Shows all authors stored in the database
4 Authors alive in a year Filters authors by a given year
5 Books by language Filters books by language code
0 Exit Closes the application

Getting started

Prerequisites

  • Java 17+
  • PostgreSQL running locally
  • Maven

Installation

# 1. Clone the repository
git clone https://github.com/Ccirhack/literalura-java

# 2. Configure your database in src/main/resources/application.properties
spring.datasource.url=jdbc:postgresql://localhost:5432/literalura
spring.datasource.username=YOUR_USER
spring.datasource.password=YOUR_PASSWORD

# 3. Run
./mvnw spring-boot:run

What I learned

  • Consuming a public REST API with Spring's RestTemplate
  • Persisting data with Spring Data JPA and PostgreSQL
  • Writing JPQL queries for filtering and reporting
  • Deserializing JSON with Jackson
  • Building interactive console menus in Spring Boot

Contributing

Contributions are welcome. Please open an issue first to discuss any changes you'd like to make, then submit a pull request.

Contact

Yuan Retamozo · LinkedIn · yretamozovilca@gmail.com

About

Implementación de un catálogo de libros, consultas de una API y guardado en una base de datos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages