Thunder
Thunder web framework where productivity and performance go together
Benchmark comparative
The folder .\benchmarks
contains some battles of Thunder web framework against Iris (golang), Flask (python), Expressjs (nodejs)
Throughput: Thunder (.NET Core): 6.31MB/s vs Iris (golang): 6.28MB/s
How can I get it? (template mode)
- Install the latest .NET Core SDK.
- Run
dotnet new -i Thunder.Web.Framework.Template
to install the project template.
- Run
dotnet new thunder --help
to see how to select the feature of the project.
- Run
dotnet new thunder --name FastestServer
to create a project from the template.
How can I get it? (nuget references)
- Install the latest .NET Core SDK.
- Create a new .NET Core console application.
- PM>
Install-Package Thunder.Web.Framework
.
Simple usage
The simple usage configure a custom route /hello and render *.html inside all directories of .\wwwroot
Server.Get("/hello", context => context.Response.WriteAsync("Hello from /hello"));
Server.SetViews(".\\wwwroot");
Server.Run();
To uninstall template
dotnet new -u Thunder.Web.Framework.Template