Skip to content

Jadps/B2B-SaaS-Backend

Repository files navigation

MVP API

Backend for the MVP system.

This project uses Clean Architecture to keep business logic separated from framework, database, and HTTP concerns.

Badges

.NET C# EF Core PostgreSQL License

Structure

  • Domain
    Entities, value objects, events, and business rules.

  • Application
    Use cases, DTOs, interfaces, and validation.

  • Infrastructure
    EF Core, repositories, external services, and persistence details.

  • WebAPI
    HTTP endpoints and dependency injection setup.

Design choices

  • Direct application services instead of MediatR
  • EF Core by default
  • Raw SQL or Dapper for read-heavy paths when needed
  • Explicit result objects for normal control flow

Getting started

Prerequisites

  • .NET 10 SDK
  • A database connection string

Setup

  1. Update the connection string in appsettings.Development.json.

  2. Run migrations:

    dotnet ef database update --project Infrastructure --startup-project WebAPI
  3. Run the containers

    docker compose --profile local up -d (youll need docker installed)

About

Scalable Multi-Tenant RESTful API built with .NET 10 Clean Architecture. It ensures high availability and resilience through MassTransit (RabbitMQ) for asynchronous processing, advanced security (JWT, Rate Limiting), and a cost-optimized hybrid architecture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages