All Projects → iammukeshm → OnionArchitecture

iammukeshm / OnionArchitecture

Licence: other
The onion architecture, introduced by Jeffrey Palermo, overcomes the issues of the layered architecture with great ease. With Onion Architecture, the game-changer is that the Domain Layer (Entities and Validation Rules that are common to the business case ) is at the Core of the Entire Application. This means higher flexibility and lesser coupli…

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to OnionArchitecture

Clean Architecture Manga
🌀 Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
Stars: ✭ 3,104 (+888.54%)
Mutual labels:  clean-architecture, webapi, onion-architecture
Cleanarchitecture.webapi
An implementation of Clean Architecture for ASP.NET Core 3.1 WebAPI. Built with loosely coupled architecture and clean-code practices in mind.
Stars: ✭ 615 (+95.86%)
Mutual labels:  clean-architecture, asp-net-core, webapi
Ultrix
Ultrix is a meme website for collecting memes and sharing them with friends on the website.
Stars: ✭ 13 (-95.86%)
Mutual labels:  clean-architecture, asp-net-core
Event Sourcing Castanha
An Event Sourcing service template with DDD, TDD and SOLID. It has High Cohesion and Loose Coupling, it's a good start for your next Microservice application.
Stars: ✭ 68 (-78.34%)
Mutual labels:  clean-architecture, webapi
Dotnet New Caju
Learn Clean Architecture with .NET Core 3.0 🔥
Stars: ✭ 228 (-27.39%)
Mutual labels:  clean-architecture, webapi
car-rental
CarRental Project
Stars: ✭ 13 (-95.86%)
Mutual labels:  clean-architecture, asp-net-core
CleanArchitecture
ASP.NET Core 6 Web API Clean Architecture Solution Template
Stars: ✭ 312 (-0.64%)
Mutual labels:  clean-architecture, webapi
Onion Architecture Asp.net Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 5!
Stars: ✭ 196 (-37.58%)
Mutual labels:  clean-architecture, asp-net-core
social-me-die
A social media experiment with .net core, ef core, react and mobx.
Stars: ✭ 16 (-94.9%)
Mutual labels:  clean-architecture, cqrs-pattern
WebAPI2CLI
Execute ASP.NET Core WebAPI from Command Line
Stars: ✭ 28 (-91.08%)
Mutual labels:  asp-net-core, webapi
Cqrs Clean Eventual Consistency
CQRS, using Clean Architecture, multiple databases and Eventual Consistency
Stars: ✭ 247 (-21.34%)
Mutual labels:  clean-architecture, asp-net-core
awesome-software-architecture
A curated list of awesome articles, videos, and other resources to learn and practice software architecture, patterns, and principles.
Stars: ✭ 1,594 (+407.64%)
Mutual labels:  clean-architecture, onion-architecture
archunit-junit5-kotlin
Generic Architecture Tests written in Kotlin using ArchUnit and Junit5
Stars: ✭ 22 (-92.99%)
Mutual labels:  clean-architecture, onion-architecture
CleanArchitecture-Template
This is a solution template for Clean Architecture and CQRS implementation with ASP.NET Core.
Stars: ✭ 60 (-80.89%)
Mutual labels:  clean-architecture, asp-net-core
CleanArchitectureDemo
This is a demo project built on .NET Core 3.1 Clean Architecture. Please refer the articles mentioned in the readme to learn more.
Stars: ✭ 33 (-89.49%)
Mutual labels:  clean-architecture, asp-net-core
Domain Driven Hexagon
Guide on Domain-Driven Design, software architecture, design patterns, best practices etc.
Stars: ✭ 4,417 (+1306.69%)
Mutual labels:  clean-architecture, onion-architecture
eShopOnWeb
Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
Stars: ✭ 8,250 (+2527.39%)
Mutual labels:  clean-architecture, asp-net-core
dotnet-webapi-boilerplate
Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.
Stars: ✭ 2,200 (+600.64%)
Mutual labels:  clean-architecture, webapi
CleanArchitecture
Clean Architecture Solution for .NET 5
Stars: ✭ 18 (-94.27%)
Mutual labels:  asp-net-core, webapi
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (-50.32%)
Mutual labels:  asp-net-core, webapi

Onion Architecture In ASP.NET Core With CQRS

The onion architecture, introduced by Jeffrey Palermo, overcomes the issues of the layered architecture with great ease. With Onion Architecture, the game changer is that the Domain Layer (Entities and Validation Rules that are common to the business case ) is at the Core of the Entire Application. This means higher flexbility and lesser coupling. In this approach, we can see that all the Layers are dependent only on the Core Layers.

Give a Star ⭐️

If you found this Implementation helpful or used it in your Projects, do give it a star. Thanks!

Overview

alt text

We will talk about Onion Architecture In ASP.NET Core and it's advantages. We will also together build a WebApi that follows a variant of Onion Architecture so that we get to see why it is important to implement such an architecture in your upcoming projects.

Here is a list of features and tech we will be using for this setup.

  • Onion Architecture
  • Entity Framework Core
  • .NET Core 3.1 Library / .NET Standard 2.1 Library / ASP.NET Core 3.1 WebApi
  • Swagger
  • CQRS / Mediator Pattern using MediatR Library
  • CRUD Operations
  • Inverted Dependencies
  • API Versioning
Read more on my Blog Post - https://www.codewithmukesh.com/blog/onion-architecture-in-aspnet-core/

Full Fledged Clean Architecture Solution for ASP.NET Core WebApi

I am building a more complex variant of this implementation that will be production ready. Check out the Repository @ https://github.com/iammukeshm/CleanArchitecture.WebApi

Questions? Bugs? Suggestions for Improvement?

Having any issues or troubles getting started? Get in touch with me

Support

Has this Project helped you learn something New? or Helped you at work? Do Consider Supporting.

Buy Me A Coffee

Share it!

I have personally not come across a clean implementation on a WebAPI, which is the reason that I started building this up. There are quite a lot of improvements and fixes along the way from the day I started out. Thanks to the community for the support and suggestions. Please share this Repository within your developer community, if you think that this would a difference! Thanks.

About the Author

Mukesh Murugan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].