Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcos-venicius/clean.architecture.template
A basic template to start a new webapi using clean architecture with CQRS and unit tests
https://github.com/marcos-venicius/clean.architecture.template
aspnet clean-architecture clean-code cqrs dotnet dotnet-core mediator template web-api xunit
Last synced: 7 days ago
JSON representation
A basic template to start a new webapi using clean architecture with CQRS and unit tests
- Host: GitHub
- URL: https://github.com/marcos-venicius/clean.architecture.template
- Owner: marcos-venicius
- License: mit
- Created: 2023-06-04T17:35:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-14T18:23:42.000Z (almost 1 year ago)
- Last Synced: 2023-11-14T19:33:14.482Z (almost 1 year ago)
- Topics: aspnet, clean-architecture, clean-code, cqrs, dotnet, dotnet-core, mediator, template, web-api, xunit
- Language: C#
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clean Architecture Template
![clean-arch-screenshot](https://github.com/marcos-venicius/clean.architecture.template/assets/94018427/08ff1fb1-2ddf-4475-87ef-a279e4a13ec7)
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
```shell
dotnet-ef migrations add -p src/Infra/Infra.csproj -s src/Core/Core.csproj
```## Update database
inside the solution folder
```shell
dotnet-ef database update -p src/Infra/Infra.csproj -s src/Core/Core.csproj
```## Running tests
```shell
dotnet test --logger="console;verbosity=detailed"
```## Run project
```shell
cd src/Coredotnet run
```