Skip to content

Genocs/genocs-library-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebApi Template .NET Microservice Template by Genocs

Build status NuGet All Contributors Gitter Discord Twitter

Introduction

Genocs.WebApiTemplate is part of the Genocs.Library project.

Genocs Library logo

To get all the information you need to use it: please check Genocs Library documentation

This is an WebApi Template that help you create LOB applications. It follows the Microservice Architecture and built on Domain-Driven-Design. This is a useful tool to increase productivity on developing your next microservices solution.

How to create a project

Create, build, test and run:

dotnet new install Genocs.WebApiTemplate::{{semver}}
dotnet new gnx-webapi -n {{CompanyName.ProjectName.ServiceName}}
cd {{CompanyName.ProjectName.ServiceName}}
dotnet build src/{{CompanyName.ProjectName.ServiceName}}.WebApi

dotnet test
cd src/{{CompanyName.ProjectName.ServiceName}}.WebApi
dotnet run src/{{CompanyName.ProjectName.ServiceName}}.WebApi

How to build the package

To build the package run the following commands:

Official Link

cd .\src
.\nuget.exe pack -OutputDirectory nupkgs -NoDefaultExcludes -Version {{semver}}
dotnet new install .\nupkgs\Genocs.WebApiTemplate.{{semver}}.nupkg
dotnet new gnx-webapi --help
dotnet new gnx-webapi --name {{CompanyName.ProjectName.ServiceName}}

# To get a list of the installed templetes
dotnet new list

# To get a list of templates that can be removed
dotnet new -u

# To uninstall the template
dotnet new uninstall Genocs.WebApiTemplate

Sample application

Run dotnet new install Genocs.WebApiTemplate then try the following commands.

dotnet new gnx-webapi

Miscellaneous

How to get the list of installed templates

dotnet new -u
dotnet --list