Skip to content

ilkoninn/API-NTierArch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧱 API-NTierArch

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.


🧠 Architecture Overview

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

πŸš€ Getting Started

βœ… Prerequisites

  • .NET 7 or 8 SDK
  • SQL Server (or any EF Core-supported database)
  • Visual Studio 2022+ or Visual Studio Code

βš™οΈ Setup Steps

  1. Clone the Repository
    git clone https://github.com/ilkoninn/API-NTierArch.git
    cd API-NTierArch/src

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages