Skip to content

WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 8!

License

Notifications You must be signed in to change notification settings

Amitpnk/Onion-architecture-ASP.NET-Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio Marketplace version Visual Studio Marketplace downloads Visual Studio Marketplace ratings Visual Studio Marketplace version

WhiteApp/QuickApp Onion architecture with ASP.NET Core


Logo

Onion Architecture

WhiteApp or QuickApp API solution template which is built on Onion Architecture with all essential feature using .NET Core!
Explore the docs »

Download from Marketplace · Report Bug · Request Feature

Give a Star! ⭐

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Table of Contents

Onion Architecture

Onion Architecture was introduced by Jeffrey Palermo to provide a better way to build applications in perspective of better testability, maintainability, and dependability on the infrastructures like databases and services

Onion, Clean or Hexagonal architecture: it's all the same. Which is built on Domain-Driven Desgin approach.

Domain in center and building layer top of it. You can call it as Domain-centric Architecture too.

Reference

About The Project

WhiteApp or QuickApp API solution template which is built on Onion Architecture with all essential feature using .NET Core.

image

Getting Started

Step 1: Download extension from project template

Download from Marketplace

image

Step 2: Create Project

Select project type as API, and select Onion Architecture

image

Step 3: Select Onion Architecture project template

Select project type as API, and select Onion Architecture

image

Step 4: Project is ready

image

Step 5: Create Database

For Code First approach

Update-Database

For Database First approach

In Package Manager console in << ProjectName >>.Data, run below command

scaffold-dbcontext -provider Microsoft.EntityFrameworkCore.SqlServer -connection "Data Source=(local)\SQLexpress;Initial Catalog=OnionArchitectureDBS;Integrated Security=True"

Step 6: Build and run application

Swagger UI

image

Features available in this project

This is default white application for ASP.NET Core API development

This whiteapp contains following features, uncheck feature need to implement yet.

  • Application is implemented on Onion architecture
  • API
  • Entityframework Core
  • Expection handling
  • Automapper
  • Unit testing via NUnit
  • Integration testing via NUnit
  • Versioning
  • Swagger
  • CQRS Pattern

Below features will be implemented in infrastructure layer. You can plug and play based on your project.

  • Loggings - seriLog
  • Email
  • JWT authentication
  • React-redux for UI
  • Health checks
  • Fluent validations
  • Hangfire
  • Advanced Pagination

Licence Used

MIT License

See the contents of the LICENSE file for details

Support This Project

If you have found this project helpful, either as a library that you use or as a learning tool, please consider buying me a coffee:

Buy Me A Coffee

I do coding for fun during leisure time, but I have to pay the bills, so I also work for money :P