Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jeangatto/ASP.NET-Core-Clean-Architecture-CQRS-Event-Sourcing

Repository files navigation

ASP.NET Core C# — Clean Architecture, CQRS, Event Sourcing

Build SonarCloud CodeQL DevSkim License

Lines of Code Coverage Maintainability Rating Security Rating Vulnerabilities Bugs Code Smells

Sparkline

About the repository: Open source project written in the latest version of ASP.NET Core, implementing the concepts of S.O.L.I.D, Clean Code, CQRS (Command Query Responsibility Segregation)

Give it a star! ⭐

If you liked this project, learned something, give it a star. Thank you!

Technologies

Architecture

CQRS Pattern

  • Full architecture with responsibility separation concerns, SOLID and Clean Code
  • Domain Driven Design (Layers and Domain Model Pattern)
  • Domain Events
  • Domain Notification
  • Domain Validations
  • CQRS
  • Event Sourcing
  • Unit of Work
  • Repository Pattern
  • Result Pattern

Running the application

After cloning the repository to the desired folder, run the command in the terminal at the root of the project:

dotnet clean Shop.sln --nologo /tl && dotnet build Shop.sln --nologo /tl

Set passwords in the .env file:

MSSQL_SA_PASSWORD=YOUR_STRONG_!Passw0rd
REDIS_PASSWORD=YOUR_STRONG_!Passw0rd
MSSQL_PORT=1433
MONGO_PORT=27017
REDIS_PORT=6379
ASPNETCORE_ENVIRONMENT=Development

Next step, run the command in the terminal:

docker-compose up --build

Now just open the url in the browser:

http://localhost:{port}/scalar/v1

MiniProfiler for .NET

To access the page with the performance indicators and performance:

http://localhost:{port}/profiler/results-index

License