Skip to content

TheAngryByrd/uhura

Repository files navigation

uhura

This is a super simple url router for Owin/Kestrel. It's designed be super simple with use from F# for microservices. If you need something more robust I suggest Suave, Nancy or Asp.Net

Why Uhura? It was a joke started around my office about making Enterprise Ready™ software.

build

MacOS/Linux Windows
Travis Badge Build status
Build History Build History

Nuget

Stable Prerelease
NuGet Badge NuGet Badge

Hello World

open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.Hosting
open Microsoft.AspNetCore.Http
open Uhura.Web
open Uhura.Web.Routing
let helloWorldHandler groups (ctx : HttpContext) =
    ctx.Response.WriteAsync("Hello world from Uhura on Kestrel!") 

let routes =
    [
        GET "/" helloWorldHandler
    ]
[<EntryPoint>]
let main argv =
    WebHostBuilder()
        .UseUrls("http://localhost:8083")
        .UseKestrel()
        .Configure(fun appBuilder -> openHailingFrequencies appBuilder routes)
        .Build()
        .Run()

    0

About

No description, website, or topics provided.

Resources

License

MIT, Unlicense licenses found

Licenses found

MIT
LICENSE.md
Unlicense
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published