https://github.com/nikiforovall/na-ca
Clean Architecture and DDD template
https://github.com/nikiforovall/na-ca
clean-architecture dotnet6
Last synced: 20 days ago
JSON representation
Clean Architecture and DDD template
- Host: GitHub
- URL: https://github.com/nikiforovall/na-ca
- Owner: NikiforovAll
- License: apache-2.0
- Created: 2021-10-30T13:06:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-13T08:05:57.000Z (over 3 years ago)
- Last Synced: 2025-02-12T12:15:35.170Z (2 months ago)
- Topics: clean-architecture, dotnet6
- Language: C#
- Homepage: https://github.com/NikiforovAll/na-templates
- Size: 274 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NikiforovAll.CleanArchitecture.Template \[na-ca\]
## Technologies
* [ASP.NET Core 6](https://docs.microsoft.com/en-us/aspnet/core/)
* [FluentValidation](https://fluentvalidation.net/)
* [MediatR](https://github.com/jbogard/MediatR)
* [AutoMapper](https://automapper.org/)
* [Entity Framework Core 6](https://docs.microsoft.com/en-us/ef/core/)
* [MassTransit](https://masstransit-project.com/)
* [Docker](https://www.docker.com/)Testing:
* [XUnit](https://xunit.net/)
* [FluentAssertions](https://fluentassertions.com/)
* [Moq](https://github.com/moq)
* [AutoFixture](https://github.com/AutoFixture/AutoFixture)
* [Respawn](https://github.com/jbogard/Respawn)## Principles
* DDD
* Testability
* Separation of Concerns
* CQRS
Reference to## Overview
### Domain
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 depends on both the Application and Infrastructure layers, however, the dependency on Infrastructure is only to support dependency injection. Therefore only *Startup.cs* should reference Infrastructure.
## License
This project is licensed with the [Apache License](LICENSE).
## Credit
Inspired by:
*
*
*