How fmoraes87/cadre works
Main Components
• Front-End Application (Cadre Front-End): An Angular 11 project using the PrimeNG Diamond template. This part is responsible for the user interface and client-side logic (routing, components, services, UI controls, theming, etc.).
• Backend Application (Cadre Server): A Maven-based Java application meant to run on Tomcat, handling business logic, data persistence, OAuth support, identity management, and metadata-driven configuration. It is divided into multiple layers:
• Core Services and Business Logic (processes, authentication, notification, etc.)
• Data Persistence & ORM layers (DAO, JDBC, query packages)
• Security and OAuth integration components (OAuth2, Facebook and Google providers)
• Additional utility modules (caching, validation, converters, and cron jobs)
• Database: A PostgreSQL instance (with a connection string evident in the environment variable setup) used for persisting application data and metadata.
• External Services/Providers:
• OAuth, Facebook Login, Google Support (to handle user identity and integration with external identity management systems)
• (Possibly) external configuration and integration endpoints offered through REST.
• Infrastructure & Deployment:
• Docker Compose configuration to launch the backend in a development setting.
• Tomcat for production deployments, managed via generated WAR files.
Relationships and Interactions
• For authentication and integration, represent connections from both the client and server layers to external identity providers (OAuth, Facebook, Google).
• Within the Java backend, internally denote how layers interact (e.g., request flow from a REST controller to service layer, then to persistence layer).
• Optionally, highlight integrations such as the data engine APIs or metadata-driven modules that allow for dynamic customization without regenerating Java code.
Architectural Patterns and Design Principles
• Clear separation of concerns: The front-end is a distinct Angular application, and the backend leverages the layered architecture (presentation, service, and data persistence layers).
• Metadata-Driven Customization: Emphasize that the backend utilizes extensive annotations, metadata, and dynamic configuration to enable flexible process and UI definitions.
• Security and Enterprise Integration: Include components for authentication, identity management, and service access policies.
• Reusability/Extensibility: Both the front-end (with UI components and services) and the backend (with converters, builders, and validators) are modular, suggesting the advantage of reusing components and an extensible architecture.