Git Product home page Git Product logo

cqrsninja's Introduction

banner

CQRS Ninja - ASP.NET Core Boilerplate

CQRS Ninja is a boilerplate solution, built to demonstrate implementing Command Query Responsibility Segregation - CQRS in ASP.NET Core (.NET 6) via MediatR.

What is CQRS?

CQRS stands for Command Query Responsibility Segregation. It is an Architectural Design Pattern that advocates segregating or grouping the methods based on how they impact the data and design them separately according to their requirements. CQRS helps segregate functionalities into two different models - Commands and Queries, there by creating a clear separation of concerns for each functionality.

Technologies

  • ASP.NET Core (.NET 6)
  • Entity Framework Core (EFCore 6)
  • MediatR for .NET 6
  • Fluent Validation for .NET 6
  • SQLite

About the Boilerplate

This boilerplate is a perfect starter for developers looking to implement CQRS. It also helps beginners better understand the concept of CQRS and how its implemented, while keeping the code simple.

What do you get?

  1. Clean Architecture with well-defined layers for API, Persistence, Core, Contracts and Migrations
  2. Implemented UnitOfWork with Generic Repository
  3. Preconfigured Entity Framework Core migrations with SQLite
  4. Segregated Commands and Queries with their Handlers
  5. Fluent Validation on the input model within the Command classes
  6. Preconfigured Swagger UI

Getting Started

To get started, follow the below steps:

  1. Install .NET 6 SDK
  2. Clone the Solution into your Local Directory
  3. Navigate to the CqrsNinja.API directory
  4. Run the solution

Read the complete article to learn more:

Implementing CQRS using Mediator in ASP.NET Core

Issues or Ideas?

If you face any issues or would like to drop a suggestion, raise an issue

Show your Support

Leave a Star if you find the solution useful. If you find the article helpful, support me by:

Buy Me A Coffee

For more detailed articles and how-to guides, visit https://referbruv.com

cqrsninja's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cqrsninja's Issues

Question

Hi, first, great job, i learned a lot with your code.
my question is, you are using Sqlite in this project, and in the first time i run , it return a list of Ninjas, but from where you already set this default values? i tried figurate from where you create the default list, but i cant find.
thx so much

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.