https://github.com/mustafaalkan64/cleanarchitecturetemplate
https://github.com/mustafaalkan64/cleanarchitecturetemplate
clean-architecture cqrs cross-cutting-concerns ddd open-telemetry seq
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mustafaalkan64/cleanarchitecturetemplate
- Owner: mustafaalkan64
- Created: 2025-08-04T06:56:14.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-08-04T09:15:39.000Z (10 months ago)
- Last Synced: 2025-08-04T11:58:09.529Z (10 months ago)
- Topics: clean-architecture, cqrs, cross-cutting-concerns, ddd, open-telemetry, seq
- Language: C#
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐งฑ Clean Architecture Template (.NET 9)
A pragmatic and extensible Clean Architecture solution template for building robust .NET applications using **Domain-Driven Design (DDD)** principles.
---
## ๐งฉ What's Included?
### ๐ฆ SharedKernel Project
- Common **DDD abstractions**
- Reusable **value objects**, **base entities**, and **interfaces**
### ๐ Domain Layer
- Rich **domain model** with sample entities
- Focus on **business logic** and **ubiquitous language**
### ๐ Application Layer
- **CQRS** with MediatR-style requests
- Example **use cases**
- **Cross-cutting concerns**:
- Logging
- Validation (using FluentValidation)
### ๐ Infrastructure Layer
- **Authentication** and **Authorization**
- Role-based and Permission-based strategies
- **EF Core** with **PostgreSQL** support
- **Logging**:
- Structured logging via **Serilog**
- Integrated with **Seq** for log visualization
> ๐ Seq is available at [http://localhost:8081](http://localhost:8081) by default.
### ๐งช Testing Projects
- โ
Unit Testing
- โ
Functional Testing
- โ
Integration Testing
- โ
Architecture Testing (e.g., validate dependency rules)
---
## ๐ Advanced Features & Roadmap
This template is built with best practices in mind and is designed to grow with your project. It includes or supports:
- โ
Domain-Driven Design (DDD)
- โ
Role-based Authorization
- โ
Permission-based Authorization
- โ
Distributed Caching with Redis
- โ
OpenTelemetry for distributed tracing
- โ
Outbox Pattern for reliable event publishing
- โ
API Versioning
- โ
Unit Testing
- โ
Functional Testing
- โ
Integration Testing
---
## ๐ฅ Getting Started
```bash
git clone https://github.com/your-org/clean-architecture-template.git
cd clean-architecture-template
docker-compose up -d
```
Then open http://localhost:8081 to explore structured logs via Seq.
You can download free template from here, its ready to use : https://www.milanjovanovic.tech/templates/clean-architecture