Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/Core

dotnet run
```