Quickstart
C#
using Bemol;
class HelloWorld {
static void Main() {
App app = new App().Start(7000);
app.Get("/", (ctx) => ctx.Result("Hello World!"));
}
}
Run and view:
.NET CLI
dotnet watch run
Why use Bemol?
Simple
Unlike ASP.NET, Bemol is extremely simple. You don’t have to extend anything, there are no @Annotations, there is no magic; just code.
Lightweight
Bemol is only a few thousand lines of code built on top of the .NET library. As a result, it is extremely fast, and it is very easy to reason with Bemol’s source code.
Asynchronous
Bemol makes use of C#’s excellent asynchronous model programming to offer a server that is asynchronous by default and easily scalable.