Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alesbe/spring-boot-crud
REST server made with Spring boot and Lombook
https://github.com/alesbe/spring-boot-crud
Last synced: about 2 months ago
JSON representation
REST server made with Spring boot and Lombook
- Host: GitHub
- URL: https://github.com/alesbe/spring-boot-crud
- Owner: alesbe
- Created: 2023-10-05T09:47:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-20T13:13:18.000Z (about 1 year ago)
- Last Synced: 2023-12-20T17:00:29.746Z (about 1 year ago)
- Language: Java
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot - Movies CRUD
A CRUD made for a movies database made with Spring Boot## 🏗️ Arquitecture
This CRUD uses a [Controller - Service - Repository](https://tom-collings.medium.com/controller-service-repository-16e29a4684e5) pattern.![layers](https://i.imgur.com/4p4h1ff.png)
This designs allows the domain layer to be completly isolated from the other layers. We achieve this using a variety of techniques:
- [**Dependecy inversion principle**](https://en.wikipedia.org/wiki/Dependency_inversion_principle): This way, the persistance layer implements the interfaces defined in the domain layer. The main idea is that the domain should contain all the application logic and shouldn't be dependent or rely on any other layer.
- **Creating entities for each layer**: Each layer uses its own entities, adapted for its own use case. The web entities are adapted to recieve data, the domain entites are the main entities of the application, and the persistance entities are adapted to the database tables, but not mirroring the columns.**🚧 README WIP 🚧**