A .NET 9 solution using Backend-for-Frontend pattern with Blazor WebAssembly, FastEndpoints API, and PostgreSQL.
# Run entire application stack (recommended)
dotnet run --project src/Aspire/AppHost/HeadStart.Aspire.AppHost.csproj- Frontend: Blazor WebAssembly + MudBlazor + Tailwind CSS
- Backend: ASP.NET Core BFF + FastEndpoints API
- Database: PostgreSQL with Entity Framework Core
- Auth: OpenID Connect (Keycloak) + OpenIddict
- Infrastructure: .NET Aspire orchestration + YARP reverse proxy
BFF serves the Blazor client and proxies API calls with automatic token forwarding. WebAPI uses FastEndpoints for clean endpoint organization. Aspire handles service discovery and orchestration.
dotnet tool install --global Microsoft.Playwright.CLI
# Add to PATH (choose based on your OS)
# macOS/Linux:
export PATH="$PATH:$HOME/.dotnet/tools"
# Windows (PowerShell):
$env:PATH += ";$env:USERPROFILE\.dotnet\tools"
# Verify installation
playwright
# Install browsers (required for test execution)
playwright installTo generate the API clients, run the following command:
dotnet run --generateclients true --project src/WebAPI/HeadStart.WebAPI.csproj