Sign inSign up

ealen/dotnet-templates

By ealen

Updated almost 6 years ago

.NET Core Templates - dotnet new CLI

Image
0

1.2K

ealen/dotnet-templates repository overview

.NET Core Templates

GitHub stars Nuget Docker Pulls Nuget

Available Templates

# With .NET CLI
~$ dotnet new --list
# With Docker
~$ docker run --rm ealen/dotnet-templates
Templates                          Short Name          Language          Tags
-----------------------------------------------------------------------------------------------
Ealen .NET Core API                ealen-api           [C#]              Ealen/Common/Api
Ealen .NET Core API CQRS/ES        ealen-api-cqrs      [C#]              Ealen/Common/Api
Ealen .NET Core Console            ealen-console       [C#]              Ealen/Common/Console
Projects
NameDescriptionCompose
ealen-apiREST API with Docker, Swagger, Redoc, Serilog, Seq, PrometheusSeq
ealen-api-cqrsREST API based on EventFlow with Docker, Swagger, Redoc, Serilog, Seq, Prometheusmongo, mongo-express, postgres
ealen-consoleConsole App Cross-Platform based on Cocona
Parameters
ParametersTypeExample
namespaceC# NamespaceMy.Repository
repositoryGitHub User/Repositoryealen/dotnet-templates

Generate Template

.NET CLI

Install templates nuget with

~$ dotnet new --install Ealen.Dotnet.Templates
~$ dotnet new ealen-api --namespace My.New.Repository --repository ealen/example

The template "Ealen .NET Core API" was created successfully. 

Processing post-creation actions...
Restore succeeded. 
Docker
~$ docker run --rm -v $(pwd):/app ealen/dotnet-templates ealen-api --namespace My.New.Repository --repository ealen/example

The template "Ealen .NET Core API" was created successfully. 

Processing post-creation actions...
Restore succeeded. 

Example

# With .NET CLI
~$ dotnet new ealen-api --namespace My.New.Repository --repository ealen/example
# With Docker
~$ docker run --rm -v $(pwd):/app ealen/dotnet-templates ealen-api --namespace My.New.Repository --repository ealen/example
/My.New.Repository
│   README.md
│   Api.My.New.Repository.sln
|   .gitignore
│   
└───src
│   │   
│   └───Api.My.New.Repository
│       │   Api.My.New.Repository.csproj
│       │   Startup.cs
│       │   ...
│   
└───tests
│   │   
│   |───Api.My.New.Repository.IntegrationTests
│   │   │   ...
│   │
│   └───Api.My.New.Repository.UnitTests
│       │   ...
│   
└───.github
│   │   
│   └───ISSUE_TEMPLATE
│   │   │   ...
│   │   
│   └───workflows
│   │   │   ...
|

Tag summary

Content type

Image

Digest

Size

262.7 MB

Last updated

almost 6 years ago

docker pull ealen/dotnet-templates