feat: initialize .NET 10 Clean Architecture solution
Create Heimdall solution with 17 projects following Clean Architecture for a maintainable and loosely coupled codebase. src/ (9 projects): - Domain, Domain.Primitives, Contracts (core layer, no deps) - Application (ref. Domain) — CQRS/MediatR ready - Infrastructure (ref. Application + Domain) — EF Core PostgreSQL ready - Api, Web (Blazor), Agent, Workers (hosts, ref. Application + Infrastructure) tests/ (8 projects): - xUnit + Shouldly + NSubstitute + bUnit (Web.Tests) - One test project per source project (Domain -> IntegrationTests) Config: Directory.Build.props (Nullable, ImplicitUsings, TreatWarningsAsErrors)
This commit is contained in:
1 parent
698520cce9
commit
bfb3e06bc1
103 files changed
+61393
-44
No files matched your search
@@ -0,0 +1,23 @@
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.AddControllers();
|
||||
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
|
||||
builder.Services.AddOpenApi();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.MapOpenApi();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
||||
Reference in new issue
Block a user