How odumpling/olivebranch works
High-Level Architecture Overview
a. Client Layer (Frontend)
• Vue.js SPA components
• Inertia.js as the bridge between frontend and backend
• Frontend technologies (Tailwind CSS, Vite)
b. Web Layer (Presentation)
• ASP.NET Core Controllers
• Inertia.js Adapter
• Middleware components
c. Application Layer
• CQRS pattern (Commands and Queries)
• MediatR handlers
• Behaviors (Validation, Authorization, Logging)
d. Domain Layer
• Entities
• Value Objects
• Domain Events
e. Infrastructure Layer
• Entity Framework Core
• Database context
• External services
Component Relationships
a. Data Flow
• Frontend → Inertia.js → Controllers → Application Layer
• Application Layer → Domain Layer
• Infrastructure Layer providing implementation details
b. Cross-Cutting Concerns
• Authentication/Authorization flow
• Validation pipeline
• Logging and exception handling
Specific Implementation Details
a. Frontend Structure
• Vue Components hierarchy
• Auth pages
• Shared layouts
• CSS/JS assets
b. Backend Structure
• Todo Items/Lists feature modules
• Weather Forecasts module
• Auth module
• Common behaviors and interfaces
Key Elements to Highlight
a. Authentication Flow
• Login/Register commands
• Authorization behavior
• Current user service
b. CQRS Implementation
• Command handlers (CreateTodoList, UpdateTodoItem, etc.)
• Query handlers (GetTodos, GetWeatherForecasts)
• Event handlers (TodoItemCompletedEventHandler)
c. Data Access
• AppDbContext
• Entity configurations
• Migrations