Skip to content

A basic template to start a new webapi using clean architecture with CQRS and unit tests

License

Notifications You must be signed in to change notification settings

marcos-venicius/clean.architecture.template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean Architecture Template

clean-arch-screenshot

This code is a template to start a new application using .NET CORE 7 with Mediator, CQRS, Clean Architecture, Unit Test and more.

This have a simple Todo-App implementation just for demonstration of how it works.

Create your projects based on this template.

some codes is missing tests because it is only an example of usage

click on "Use this template" to start

Create migrations

inside the solution folder

dotnet-ef migrations add <migration_name> -p src/Infra/Infra.csproj -s src/Core/Core.csproj

Update database

inside the solution folder

dotnet-ef database update -p src/Infra/Infra.csproj -s src/Core/Core.csproj

Running tests

dotnet test --logger="console;verbosity=detailed"

Run project

cd src/Core

dotnet run