Agranelos BFF Documentation

This documentation covers the Backend For Frontend (BFF) service for the Agranelos inventory management system.

API Documentation

Development

Testing

Architecture

graph TB
    Client[Client Applications] --> BFF[Agranelos BFF :8080]
    BFF --> Functions[Azure Functions<br/>Serverless Backend]
    Functions --> DB[(PostgreSQL<br/>Database)]
    
    subgraph "BFF Layer"
        BFF --> ProductController[Product Controller]
        BFF --> WarehouseController[Warehouse Controller]
        BFF --> GraphQLController[GraphQL Controller]
    end
    
    subgraph "Azure Functions"
        Functions --> ProductCRUD[Product CRUD]
        Functions --> WarehouseCRUD[Warehouse CRUD]
        Functions --> GraphQLEndpoint[GraphQL Endpoint]
    end

Key Features

Quick Start

  1. Prerequisites: Java 17+, Maven 3.6+, Docker/Podman
  2. Configuration: Set AZURE_FUNCTIONS_BASE_URL environment variable
  3. Run: mvn spring-boot:run or use Docker compose
  4. Test: Import Postman collection and execute test workflows

For detailed setup instructions, see the Setup Guide.