How mathiasconradt/javacoffeeshop works
Main Components
a. Web Layer (Presentation Tier):
• Static resources (CSS)
• This to the Controllers layer
b. Application Layer:
• HomeController
• OrderController
• ProductController
• PersonController
• LoginController
• etc.
c. Service Layer:
• CustomUserDetailsService
• OrderService
• PersonService
• ProductService
d. Repository Layer:
• Repositories:
• OrderRepository
• PersonRepository
• ProductRepository
• SearchRepository
e. Domain Model:
• Core domain entities:
• Person
• Order
• Product
• OrderLine
f. Security Components:
• SecurityConfig
• AuthenticationFailureListener
• Role-based access control
g. Export/Import Functionality:
• XML Export/Import
• YAML Import/Export
Relationships and Data Flow
• Web Browser → Controllers → Services → Repositories → Database
• Login Request → Security Layer → UserDetailsService
• Bidirectional relationships where applicable
Top Section:
• External Client Access
• Security Perimeter
Middle Section:
• Application Core Components
• Business Logic
• Service Layer
Bottom Section:
• Data Persistence
• External Integrations
Additional Elements
• Notes about intentional vulnerabilities
• Workshop-specific components
• Docker container boundaries
Technical Details
• Spring Boot framework
• Thymeleaf template engine
• JPA/Hibernate
• Security frameworks
• Export/Import capabilities (XML/YAML)
Remember to include a note indicating that this is a training application with intentional vulnerabilities, and should not be used in production environments.