How houarizegai/fullstack-angular-springboot works
Main Components
• Frontend: The Angular application located in the “crm-frontend” directory. It includes various components like login, menu, customer-form, customers, footer, error, welcome, and services (handling authentication, HTTP requests, data services, etc.).
• Backend: The SpringBoot application located in the “crm-rest” directory built using Maven. It exposes RESTful API endpoints (e.g., CustomerController, BasicAuthenticationController, JWT-based controllers) and includes layered packages for models, repositories, services, and security configuration (Spring Security with JWT).
• Database: Although not explicitly detailed in a separate “database” directory, the backend’s “data.sql” and “application.properties” suggest a relational database (or an embedded database) is used to persist customer data.
• Security Component: Both systems implement security: the Angular frontend calls endpoints secured via Spring Security, and the backend has components handling Basic Authentication and JWT (with dedicated controllers, token filters, and configuration classes).
Architectural Patterns / Design Principles
• Full-stack separation: Clear division between the Angular client (presentation layer) and the SpringBoot server (business logic & data access).
• Component-based design: Angular’s modular design, where each distinct feature (login, customer management, etc.) exists as its own component.
• Layered Architecture on the backend: Controllers, Services, and Repositories, emphasizing separation of concerns.
• RESTful API design: Highlight that the backend is exposing endpoints for operations like authentication, customer CRUD operations, and token management.