Home

Awesome

GenHTTP Templates

Templates to be used with dotnet new to quickly create projects based on the GenHTTP webserver.

CI Lines of Code nuget Package

Installation

To install the template pack, run the following command in your terminal.

dotnet new install GenHTTP.Templates

Included Templates

To use one of the templates below, create a new folder and run dotnet new <template> in your terminal.

TemplateDescription
genhttp-webserviceA project that will host a new REST web service.
genhttp-webservice-minimalA project that will host a new REST web service in a single file.
genhttp-webservice-controllersA project that will host a new REST web service using controllers.
genhttp-websocketA project providing a web socket endpoint using the websocket framework.
genhttp-website-staticProject to serve a static website from the file system.
genhttp-spaProject to serve the distribution files of a Single Page Application.

Template Development

To start development of the templates itself, clone the repository and run the following command in the new directory:

dotnet new install .