Awesome
GenHTTP Templates
Templates to be used with dotnet new
to quickly create projects based on
the GenHTTP webserver.
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.
Template | Description |
---|---|
genhttp-webservice | A project that will host a new REST web service. |
genhttp-webservice-minimal | A project that will host a new REST web service in a single file. |
genhttp-webservice-controllers | A project that will host a new REST web service using controllers. |
genhttp-websocket | A project providing a web socket endpoint using the websocket framework. |
genhttp-website-static | Project to serve a static website from the file system. |
genhttp-spa | Project 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 .