How softwaremill/bootzooka works
Main Components
• Backend Service: Represent the core Scala application (located in the “backend” directory) with its REST API endpoints, business logic, and supporting functionalities (such as user management, security, password-reset, email notifications, logging, and metrics).
• Frontend Web Application: Represent the “ui” directory as the modern web client built using TypeScript, React and Vite. This component provides the user interface, routing, and handles API calls to the backend.
• Database: Include PostgreSQL (as mentioned in both the README and Docker compose file) as the persistent data store.
• External Services: Capture external dependencies such as email providers (SMTP, Mailgun options in the backend’s email sender package), and any third-party observability/monitoring tools (Graphana and OpenTelemetry as per the README).
• Deployment & Orchestration: Include components for containerization (docker-compose) and deployment automation using Helm charts (directory “helm/bootzooka”).
Relationships and Interactions
• The Backend also interacts with external email services for sending notifications and may interact with metrics/observability tools for logging and monitoring.
• Additionally, indicate how deployment tools (Docker, Helm) package and deploy the application components, possibly in a container orchestration environment.
Architectural Patterns and Technologies
• MVC / Layered Architecture: The backend is organized into clear packages (configuration, security, admin, user, email, etc.), indicating separation of concerns.
• API-Driven Design: Emphasize the REST API layer provided by the backend.
• Microservices-readiness: Although it is a single application now, the modular structure (e.g., separate email, security, and user modules) could allow for scalable refactoring later.
• Testing and CI/CD: Represent test suites (backend/src/test and integration-tests) and integration pipelines (GitHub workflows) to indicate continuous integration.