Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing a web app with Mono (opensource .NET) any examples?

I am a Java, Scala, Python web app Linux guy. I want to play around with Mono (particularly F#) for web development.

I am just looking for an example web application written in Mono perhaps in Github (any CLI language is fine). I have tried googling and cannot find a good starting point (or if its even possible).

From what I gather I could sort of combine:

  • Fast CGI (nginx, lighttpd)
  • Mono
  • Spring framework .NET (I can't even tell if it will work on Mono)

Advanced apologies if there is a glaringly obvious resource (web site) that I missed.

(useful site: http://www.tryfsharp.org/Resources/GetMono.aspx)

like image 502
Adam Gent Avatar asked Apr 24 '12 16:04

Adam Gent


2 Answers

To get F# dev environment for Mac/Linux setup:

  • http://www.tryfsharp.org/Resources/GetMono.aspx

For Ubuntu 12.04 specifically:

  • http://datachomp.com/archives/running-asp-net-mvc4-on-ubuntu-12-04/

To Get Fsharp to work with MonoDevelop 2.6 or greater you have to use one of forks of:

  • https://github.com/fsharp/fsharpbinding

Nancy looks like a good URL routing option which is all I really need:

  • https://github.com/NancyFx/Nancy

And for F# Mono stuff for Nancy including Djano templating:

  • https://github.com/NancyFx/Nancy/wiki/Building-Nancy-on-Mono

You can use the command line NuGet install tool (which is basically like Javascripts npm or Java's maven):

  • http://nuget.codeplex.com/releases/view/58939

Once I install the Fsharp Powerpack I should have in theory LINQ to use for persistence.

And If Nancy does not work out there appears to be a standard called OWIN (it appears to be analogous to Python's WSGI).

Other OWIN compliant projects: http://owin.org/#projects

UPDATE

Looks like ServiceStack has some good stuff also and seems to be gaining some traction. In terms of Mono you mainly want to look at daemon doc.

like image 175
Adam Gent Avatar answered Sep 17 '22 17:09

Adam Gent


Check out XSP (about halfway down this page)

Mono & ASP.NET

And besides WebSharper which Daniel mentioned there's also Bistro.

Hope that helps.

like image 33
Onorio Catenacci Avatar answered Sep 18 '22 17:09

Onorio Catenacci