This repository is organized following the principles of Clean Architecture. Below is the structure and description of each project within the solution.
Contains application business logic and use cases.
Dependencies/
Common/
Mappings/
UseCases/
ConfigureServices.cs
Includes domain entities, enums, exceptions, and interfaces.
Dependencies/
Common/
Entities/
Enums/
Exceptions/
Interfaces/
Implements persistence and infrastructure concerns.
Dependencies/
Data/
Migrations/
Repositories/
ConfigureServices.cs
The entry point for the web API, containing controllers and middleware.
Dependencies/
Properties/
Controllers/
Middlewares/
appsettings.json
appsettings.Development.json
CleanArch.http
compose.yml
Dockerfile
Program.cs
To get a local copy up and running follow these simple steps.
- .NET 8.0 SDK
- Docker (optional)
- Clone the repo
- Navigate to the root directory
- Run
dotnet restore
- Run
dotnet run --project CleanArch.WebAPI