How pauldragoslav/spring-boot-banking works
Project type and purpose
• This is a Java Spring-Boot microservice (“Banking”) for basic bank operations (create account, deposit, withdraw, check balance).
• It exposes REST endpoints (AccountRestController, TransactionRestController) and persists data via JPA repositories.
File structure
• Top-level: Maven project (pom.xml), Dockerfile, Postman collection, CI workflow.
• src/main/java/com/example/paul:
• Application.java – entry point
• controllers/ – REST API layer
• services/ – business-logic layer
• repositories/ – data-access layer (Spring Data JPA)
• models/ – domain entities (Account, Transaction)
• utils/constants/validation – input DTOs, constants, validators
• src/main/resources: application.yaml, schema.sql, data.sql (DB config & init scripts)
• tests: unit and integration tests per layer.
README insights
• Runs standalone or in Docker, no external dependencies besides a relational database (embedded or external).
• Suggests possible extension: asynchronous processing via message queue.
Elements
• Labels: “API Client”, “AccountRestController”, “TransactionService”, “AccountRepository”, “BankDB”
Putting it all together
Middle layer: “AccountService” and “TransactionService”.
Bottom layer: “AccountRepository” and “TransactionRepository”.