How entwoy/spring-angular-eagleflicks works
Main Components
• Frontend Application (Angular): This component handles routing, views, user interactions, and connects to backend APIs. Represent the Angular app with its subcomponents (pages, login, movie-listing, detail views, etc.).
• Database (MySQL): Show this as the persistent data storage that holds user records, movie data, and any additional streaming metadata.
• External Resources and Tools: Although not an architectural component per se, reference that the project uses Maven for build processes and configuration files (application.properties) for database and server settings.
Relationships and Interactions
• The backend connects to the MySQL database for data persistence. Represent these interactions and indicate that Spring Data JPA is used.
Architectural Patterns and Design Principles
• Model–View–Controller (MVC): Present in the backend where controllers handle HTTP requests and delegate to services.
• Layered Architecture: Separate layers (presentation, business, data access) with clear dependency directions.
• Security is implemented using JWT-based authentication and authorization, so include security modules with filters and token utilities.
• For the Angular frontend, display routing and components hierarchies.
Technologies and Frameworks
• Backend: Java with Spring Boot, Spring MVC, Spring Data JPA, JWT security.
• Frontend: Angular (with TypeScript) and its components, services, and routing.
• Database: MySQL, with JDBC configuration defined in application.properties.
• Build and Dependency Management: Maven for the backend, npm and Angular CLI for the frontend.
Putting It All Together
• Under the Backend block, nest or segment by layers/divisions (Controller layer, Service/Business layer, Data/Repository layer, and Security components) to reflect the MVC and layered architecture.
Happy diagramming!