Skip to content

Diegoslourenco/book-repository-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Repository

Application built to organize a book repository in order to practice and apply the concepts of a CRUD using Spring Boot and the MVC architectural pattern.

Dependencies:

Application Architecture

 ┌───────┐         ┌──────────┐       ┌──────────┐
 │   ☁️     <───>      ☕      <───>      💾    │
 │  Web  │   HTTP  │  Spring  │       │ Database │
 └───────┘         │  Service │       └──────────┘
                   └──────────┘

Internal Architecture

The internal architecture:

  • Controller classes provide endpoints and deal with HTTP requests and responses from/to the view
  • Service classes contains the business rules, receive the request from a controller and talk to repository to acess data to return a response to controller
  • Repository classes interface with the DAO internally that interface with the database and take care of writing and reading data to/from persistent storage
                      ┌───────────────────── Spring Service ──────────────────────┐
                      │                                                           │
             Request  │                                                           │
 ┌────────┐   ─────────> ┌────────────┐       ┌─────────┐       ┌────────────┐    │   ┌──────────┐
 │  View  │  <────────── │ Controller │ <───> │ Service │ <───> │ Repository │ <────> │ Database │
 └────────┘  Response │  └────────────┘       └─────────┘       └────────────┘    │   └──────────┘
                      │                                                           │
                      └───────────────────────────────────────────────────────────┘