Skip to content

This .NET Core 9 project demonstrates Clean Architecture with CQRS. It features FastEndpoints for minimal APIs, PostgreSQL with Entity Framework for data handling, and AutoRegisterDI for dependency injection. A scalable, maintainable solution using C# 13, ideal for enterprise applications and modern development practices.

License

Notifications You must be signed in to change notification settings

iamhasibulhasan/FastEndpointsDotNet

Repository files navigation

FastEndpointsDotNet

🚀 Overview

This project demonstrates a Clean Architecture setup with CQRS pattern, utilizing FastEndpoints, MediatR, FluentValidation, PostgreSQL, and Entity Framework Core. It's built using .NET 9 and C# 13, with auto-registration of services through the AutoRegisterDI package.

📝 git clone

    git clone https://github.com/iamhasibulhasan/FastEndpointsDotNet.git

📝 docker build & run

    docker build -t fastendpoints-app:latest .
    docker run -p 8080:8080 --name fastendpoints-container fastendpoints-app:latest

📦 Features

  • Clean Architecture: Maintains separation of concerns and ensures scalability.
  • CQRS Pattern: Implements Command and Query Responsibility Segregation.
  • FastEndpoints: Simplified API layer to handle HTTP requests and responses.
  • MediatR: Decouples the request/response logic from application layers.
  • FluentValidation: Provides a fluent interface for validating objects and requests.
  • PostgreSQL: Utilizes PostgreSQL for data storage and management.
  • Entity Framework Core: Handles data access and database management.
  • AutoRegisterDI: Automatically registers services for dependency injection.

📂 Project Structure

📦 ProjectRoot
├── 📁 Core
│   ├── 📁 Application      # Business Logic (CQRS Handlers, MediatR)
│   ├── 📁 Domain           # Core Entities & Interfaces
│   └── 📁 Infrastructure   # Data Access (EF Core, PostgreSQL)
└── 📁 Web.Api
    └── 📁 Presentation     # FastEndpoints (API Layer)

About

This .NET Core 9 project demonstrates Clean Architecture with CQRS. It features FastEndpoints for minimal APIs, PostgreSQL with Entity Framework for data handling, and AutoRegisterDI for dependency injection. A scalable, maintainable solution using C# 13, ideal for enterprise applications and modern development practices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published