How fullstackhero/blazor-starter-kit works
Project Type and Purpose
This is a full-stack Blazor WebAssembly 6.0 application following Clean Architecture principles, built with MudBlazor Components. It's an enterprise-level boilerplate with features like authentication, authorization, and multi-language support.
Main Architectural Components
The system should be represented in layers according to Clean Architecture, with the following key components:
a. Client Layer (Presentation)
• Blazor WebAssembly Frontend
• MudBlazor UI Components
• Client-side Services and State Management
b. Application Layer
• Features (Commands/Queries following CQRS)
• Interfaces
• Validators
• Mappings
c. Infrastructure Layer
• Database Context
• Identity Services
• External Services Integration
• Repository Implementations
d. Domain Layer
• Entities
• Contracts
• Business Logic
[Client Layer]
• v
[API Layer (Server)]
• v
[Application Layer]
• v
[Infrastructure Layer]
• v
[Domain Layer]
Client-Side Components
[Blazor WebAssembly UI]
[MudBlazor Components]
[Client Services]
• Authentication
• State Management
• API Communication
Server-Side Components
[API Controllers]
[SignalR Hubs]
[Middleware]
• Error Handling
• Authentication
• Localization
Application Features
[CQRS Pattern]
• Commands
• Queries
[Services]
• Identity
• Document Management
• Catalog Management
Infrastructure Services
[Data Access]
• Entity Framework Core
• Repositories
[External Services]
• Storage
[Identity]
• Authentication
• Authorization
Cross-Cutting Concerns
[Logging]
[Caching]
[Validation]
[Localization]
Important Relationships to Show:
Additional Guidelines:
Database interactions
• Clean Architecture layers and dependencies
• CQRS pattern implementation
• Authentication and authorization flow
• Real-time communication via SignalR
• Multi-language support infrastructure
• Document and catalog management features
Remember to maintain the dependency rule of Clean Architecture: dependencies should only point inward, with the Domain layer at the center having no dependencies on outer layers.