Skip to content

Instantly share code, notes, and snippets.

@grumpydev
Created January 11, 2013 16:16
Show Gist options
  • Save grumpydev/4511890 to your computer and use it in GitHub Desktop.
Save grumpydev/4511890 to your computer and use it in GitHub Desktop.
Nancy running self hosted on Katana
namespace SelfHost
{
using System;
using Microsoft.Owin.Hosting;
using NancyKatana;
class Program
{
static void Main(string[] args)
{
string url = "http://localhost:8989";
using (WebApplication.Start<Startup>(url))
{
Console.WriteLine("Server running on {0}", url);
Console.ReadLine();
}
}
}
}
namespace NancyKatana
{
using Owin;
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseNancy();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment