Skip to content

Kaliumhexacyanoferrat/GenHTTP.Templates

Repository files navigation

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.

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-sse A project providing a SSE event source using the Server Sent Events handler.
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 .

About

Project templates to be used with the GenHTTP webserver SDK.

Resources

License

Stars

Watchers

Forks

Sponsor this project