Skip to content

Architecture

The application follows a layered architecture:

  • Controller Layer: Handles HTTP requests and responses.
  • Service Layer: Contains business logic and interacts with repositories.
  • Repository Layer: Manages data persistence using Spring Data JPA.
  • Entity Layer: Defines the data models for components, users, suppliers, etc.
  • Security Layer: Manages authentication and authorization using JWT.
  • Integration Layer: Connects to external APIs (e.g., DigiKey).

Main Packages

  • controller/: REST controllers
  • services/: Business logic
  • repositories/: Data access
  • entities/: Data models
  • security/: Security configuration

Data Flow

  1. Request received by Controller
  2. Controller calls Service
  3. Service interacts with Repository
  4. Repository accesses Entity
  5. Response returned to client