United
A blogging platform I built to learn Clean Architecture, CQRS and authentication in ASP.NET Core
What it is
A blogging and video community: posts, comments, reactions, bookmarks, categories, plus moderation through user reports and bans, and role-based permissions.
My part
I built the backend and the Angular frontend alone: 682 of the backend's 685 commits and all 392 frontend commits.
Architecture
Clean Architecture on the nArchitecture template. The template provided the core packages (repository base, MediatR pipeline behaviours for authorization, caching, logging and performance, security and mailing helpers). The domain, the 14 feature slices and the integrations are mine. Each feature has its own commands and queries, FluentValidation validators, a business-rules class and mapping profiles. EF Core on SQL Server, Serilog for logging. Started on .NET 7, moved to .NET 8 in 2024 and to .NET 9 in 2025.
United.sln ├─ Domain ├─ Application CQRS feature slices ├─ Persistence EF Core · SQL Server ├─ Infrastructure OAuth · OpenAI · Hugging Face ├─ WebAPI JWT · SignalR hub ├─ AppHost .NET Aspire └─ Tests xUnit · Moq
Auth
JWT with refresh tokens, email and authenticator-app 2FA, sign-in with Google, Facebook, X and GitHub, claim-based authorization.
Testing
An xUnit and Moq suite (2024) that covers auth, blogs, categories, comments, contents, reports and users through mocked repositories and fake data.
AI (2025)
An assistant endpoint backed by OpenAI and Semantic Kernel (with an Ollama connector for local models) that streams answers to the browser over SignalR, plus speech-to-text through Hugging Face.
Local orchestration
A .NET Aspire AppHost (December 2024) for running the services together.