A clean, modular, and maintainable .NET Web API project built with a custom N-Tier Architecture approach. This repository showcases how to structure scalable backend applications by splitting responsibilities into distinct layers such as API
, Business
, Core
, DAL
, and Shared
.
The goal of this architecture is to keep each layer focused on a single responsibility:
src/
β
βββ App.API β Presentation Layer (Controllers, Middleware, Swagger)
βββ App.Business β Business Logic Layer (Services, Interfaces, DTOs)
βββ App.Core β Domain Layer (Entities, Enums, Contracts)
βββ App.DAL β Data Access Layer (EF Core, DbContext, Repositories)
βββ App.Shared β Shared Layer (External services (Email, Cloud, etc.))
βββ App.sln β Solution File
This structure ensures:
- π§© Separation of concerns
- π§ͺ Improved testability
- π¦ Scalable and maintainable codebase
- .NET 7 or 8 SDK
- SQL Server (or any EF Core-supported database)
- Visual Studio 2022+ or Visual Studio Code
- Clone the Repository
git clone https://github.com/ilkoninn/API-NTierArch.git cd API-NTierArch/src