/dotnet-cleanarchitecture

This project is a sample of ASP.NET Web API in .NET 8.

Primary LanguageC#MIT LicenseMIT

ASP.NET Web API with Clean Architecture

This project is a sample of ASP.NET Web API in .NET 8.

Whats Including

Web API

  • ASP.NET Web API in .NET 8
  • REST API principles, CRUD operations
  • Implementing CQRS, and Clean Architecture
  • Repository Pattern implementation
  • Developing CQRS using MediatR, FluentValidation, and AutoMapper libraries
  • Using Entity Framework Core ORM and auto migrate to SQL Server when application run
  • Swagger Open API implementation
  • MSSQL database connection and containerization
  • Testing with xUnit, FluentAssertions, Moq, Shouldly and Bogus libraries

Docker Compose establishment with all services on docker;

  • Containerization of api
  • Containerization of database
  • Override Environment variables

At the root directory which include docker-compose.yml files, run below command:

docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d