A Spring Boot application to manage a collection of currencies and their coin/note denominations. It uses Spring Boot, Spring Data JPA, and PostgreSQL (or H2 for testing), with a clean architecture and high test coverage.
- CRUD operations for currencies and denominations
- Search:
- Currencies by
code
- Denominations by
value
,series
, or both
- Currencies by
- RESTful API with Spring Web
- H2 in-memory DB for development/testing
- PostgreSQL support via Doc 6389 ker
- Test coverage with JUnit 5 and Mockito
- Uses Java
record
classes for data modeling where applicable
Field | Type |
---|---|
id | Long |
code | String |
info | String |
Field | Type |
---|---|
id | Long |
value | Double |
series | String |
imageUrl | String |
currency_id | Long (FK) |
- Java 17+
- Spring Boot 3
- Spring Data JPA
- H2 / PostgreSQL
- Docker (for PostgreSQL)
- JUnit 5, Mockito
- Maven
Ensure Docker is installed, then:
docker-compose up -d