Skip to content

samanbahrekazemi/BlogManagement.AspNetCore.CQRS

Repository files navigation

Blog Management ASP.NET Core 6 CQRS & MediatR

This is a sample ASP.NET Core 6 project that demonstrates how to use the CQRS (Command Query Responsibility Segregation) pattern with MediatR library for building a blog management system. The project includes basic CRUD operations for managing blog posts and comments, and uses an in-memory database for storing data.


Technologies


Installation and Usage

To use this project, you'll need to have .NET 6 SDK installed on your machine. Once you've installed .NET 6, you can clone this repository and run the project using the following command:

  dotnet run

Overview

Core

This will contain all entities, enums, exceptions, interfaces, types and logic specific to the domain layer.

Application

This layer contains all application logic. It is dependent on the domain layer, but has no dependencies on any other layer or project. This layer defines interfaces that are implemented by outside layers. For example, if the application need to access a notification service, a new interface would be added to application and an implementation would be created within infrastructure.

Infrastructure

This layer contains classes for accessing external resources such as file systems, web services, smtp, and so on. These classes should be based on interfaces defined within the application layer.

API

This layer Contains the API endpoints and controllers.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages