https://github.com/ealenn/templates-dotnet
.NET Templates with GitHub Actions, Docker and more (API / Jobs / Console / ML)
https://github.com/ealenn/templates-dotnet
Last synced: 16 days ago
JSON representation
.NET Templates with GitHub Actions, Docker and more (API / Jobs / Console / ML)
- Host: GitHub
- URL: https://github.com/ealenn/templates-dotnet
- Owner: Ealenn
- License: gpl-3.0
- Created: 2020-09-29T15:00:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T23:30:59.000Z (about 2 years ago)
- Last Synced: 2025-03-25T11:39:14.609Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 103 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# .NET Core Templates



* [Available Templates](#AvailableTemplates)
* [Projects](#Projects)
* [Parameters](#Parameters)
* [Generate Template](#GenerateTemplate)
* [.NET CLI](#NETCLI)
* [Docker](#Docker)
* [Example](#Example)``` bash
# With .NET CLI
~$ dotnet new --list
# With Docker
~$ docker run --rm ealen/dotnet-templates
`````` md
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
```| 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 | Type | Example |
| ---------- | ------------------------- | --------------------------- |
| namespace | C# Namespace | `My.Repository` |
| repository | GitHub User/Repository | `ealen/dotnet-templates` |Install [templates nuget](https://www.nuget.org/packages/Ealen.Dotnet.Templates/) with
```bash
~$ dotnet new --install Ealen.Dotnet.Templates
`````` bash
~$ dotnet new ealen-api --namespace My.New.Repository --repository ealen/exampleThe template "Ealen .NET Core API" was created successfully.
Processing post-creation actions...
Restore succeeded.
`````` bash
~$ docker run --rm -v $(pwd):/app ealen/dotnet-templates ealen-api --namespace My.New.Repository --repository ealen/exampleThe template "Ealen .NET Core API" was created successfully.
Processing post-creation actions...
Restore succeeded.
`````` bash
# 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
`````` bash
/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
│ │ │ ...
|
```