Skip to content
/ ca Public

Example of web api with net 8.0 under clear architecture

Notifications You must be signed in to change notification settings

maurobernal/ca

Repository files navigation

ca

The project was generated using the Clean.Architecture.Solution.Template version 8.0.5.

Build

Run dotnet build -tl to build the solution.

Run

To run the web application:

cd .\src\Web\
dotnet watch run

Navigate to https://localhost:5001. The application will automatically reload if you change any of the source files.

Code Styles & Formatting

The template includes EditorConfig support to help maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The .editorconfig file defines the coding styles applicable to this solution.

Code Scaffolding

The template includes support to scaffold new commands and queries.

Start in the .\src\Application\ folder.

Create a new command:

dotnet new ca-usecase --name CreateTodoList --feature-name TodoLists --usecase-type command --return-type int

Create a new query:

dotnet new ca-usecase -n GetTodos -fn TodoLists -ut query -rt TodosVm

If you encounter the error "No templates or subcommands found matching: 'ca-usecase'.", install the template and try again:

dotnet new install Clean.Architecture.Solution.Template::8.0.5

Test

The solution contains unit, integration, and functional tests.

To run the tests:

dotnet test

Help

To learn more about the template go to the project website. Here you can find additional guidance, request new features, report a bug, and discuss the template with other users.

<<<<<<< HEAD

Images

docker run --name seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 6001:80 -p 6000:5341 datalust/seq:latest

MS SQL Server

Download image

sudo docker pull mcr.microsoft.com/mssql/server:2022-latest

Create container

sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Pass2024"
-p 14331:1433 --name sql1 --hostname sql1
-d
mcr.microsoft.com/mssql/server:2022-latest

main

About

Example of web api with net 8.0 under clear architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published