Skip to content

Instantly share code, notes, and snippets.

Last active May 21, 2017
What would you like to do?
owin self-hosted blank project in F#

#first option

virtualize clean last ubuntu 13.04

  1. install git sudo apt-get install git and configure it git config --global "Name" && git config --global "" , add to github
  2. install mono and monodevelop sudo apt-get install monodevelop
  3. install fsharp and fsharp binding for monodevelop'
  4. install nuget addin

#second option

Vagrant + Virtual Box + puppet-mono + Visual Studio as usual


Configure Nginx (add jenkins to /etc/nginx/sites-avaibile with proxy to 8080)

Install Github oAuth Plugin

Install Github Plugin

Run Bootstrap (mono) from repository. MSBuild configure and install

<?xml version="1.0" encoding="utf-8"?>
<package id="Microsoft.Owin" version="1.1.0-beta2" targetFramework="net45" />
<package id="Microsoft.Owin.Hosting" version="1.1.0-beta2" targetFramework="net45" />
<package id="Owin" version="1.0" targetFramework="net45" />
<package id="Owin.Extensions" version="0.8.5" targetFramework="net45" />
<package id="Owin.Types" version="0.8.5" targetFramework="net45" />
module WebServer
open System
open Microsoft.Owin.Hosting
let main argv =
let baseAddress = "http://localhost:8888";
use a = Microsoft.Owin.Hosting.WebApp.Start<Startup.Startup>(baseAddress)
Console.WriteLine("Server running on {0}", baseAddress)
Console.ReadLine() |> ignore
module Startup
open Owin
open System.Web.Http
type public Startup() = class
member x.Configuration (app:IAppBuilder) =
app.UseHandlerAsync (StartupExtensions.OwinHandlerAsync(
fun req res -> res.WriteAsync("Hello, world!")
)) |> ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment