Skip to content

Ealenn/templates-dotnet

Repository files navigation

.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

Name Description Compose
ealen-api REST API with Docker, Swagger, Redoc, Serilog, Seq, Prometheus Seq
ealen-api-cqrs REST API based on EventFlow with Docker, Swagger, Redoc, Serilog, Seq, Prometheus mongo, mongo-express, postgres
ealen-console Console App Cross-Platform based on Cocona

Parameters

Parameters Type Example
namespace C# Namespace My.Repository
repository GitHub User/Repository ealen/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
│   │   │   ...
|

About

.NET Templates with GitHub Actions, Docker and more (API / Jobs / Console / ML)

Resources

License

Stars

Watchers

Forks

Packages

No packages published