How venturaproject/symfony-api-platform works
High-Level Architecture Components
• Frontend Layer (Next.js)
• Backend Layer (Symfony/API Platform)
• Infrastructure Layer
Key Components
Frontend Section:
• Next.js Application (Port 4000)
• Components Layer (/src/components)
• Services Layer (/src/services)
• Context Layer (Auth Context)
• Pages Layer
• i18n Internationalization
Backend Section (Port 8800):
• API Platform Layer
• Bounded Contexts:
• Product Context
• User Context
• Shared Context
• CQRS Implementation:
• Command Bus
• Query Bus
• Event Bus
• Doctrine ORM
• Security Layer
Infrastructure Section:
• Nginx
• PHP-FPM
• Node
• Supervisor
• Database
Architectural Patterns to Highlight
Following patterns with distinct visual elements:
• Hexagonal Architecture (Ports and Adapters)
• Application Layer
• Domain Layer
• Infrastructure Layer
• CQRS Pattern Flow
• Event-Driven Architecture
• Repository Pattern
• Domain-Driven Design Boundaries
Component Relationships
• Frontend to Backend API calls
• Command/Query flow in CQRS
• Event propagation
• Database interactions
• Authentication flow
Specific Implementation Details
For each bounded context (Product, User), show:
• Commands (Create, Update, Delete)
• Queries (GetAll, GetById)
• Domain Events
• DTOs
• Resources
• Repositories
Additional Elements
Include:
• API Platform Swagger UI
• JWT Authentication flow
• i18n translation flow
• Event listeners and subscribers
• Exception handling flow
Implementation Notes
Notes for:
• Port numbers (4000, 8800)
• Technology stack versions
• Key configuration files
• Important dependencies