Skip to content

goiarlabs/clean-architecture-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean Architecture Solution Templates

Overview

This is set of templates for creating ASP.NET Core apis following a Clean Architecture structure. Create a new project based on a chosen template between (basic, medium, advanced) by installing the associated command.

Technologies

  • ASP.NET Core 5
  • Swagger
  • Moq
  • XUnit

Getting Started

Installing templates

  1. Install the latest .NET 5 SDK
  2. Run dotnet new --install clean-architecture-templates/
  3. Run dotnet new 'clean architecture' --list.

This will display all clean architecture templates available for you:

These templates matched your input: 'clean architecture'.

Templates                  Short Name  Language  Tags   
-------------------------  ----------  --------  -------
Medium Clean Architecture  mca         [C#]      Web/Api
Basic Clean Architecture   bca         [C#]      Web/Api
  1. Create a directory with the name of your project and cd into it or just add -o MyOutputFolderName in the next's commands below

Basic template (bca)

  1. Run dotnet new bca -s MySolutionName -p MyProjectName
  2. Navigate to src/MyProjectName and run dotnet run to launch the project

The directory structure:

alt text

Medium template (mca)

  1. Run dotnet new mca -s MySolutionName -p MyProjectName
  2. Navigate to src/MyProjectName.presentation and run dotnet run to launch the project

The directory structure:

alt text

About

Set of templates for creating .NET Core apis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages