TheAngryByrd / uhura

Repository from Github https://github.comTheAngryByrd/uhuraRepository from Github https://github.comTheAngryByrd/uhura

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

License:MIT License


Languages

Language:Lua 82.2%Language:F# 14.2%Language:Shell 3.2%Language:Batchfile 0.5%