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

安稳与你 提交于 2019-12-04 11:42:39

问题


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)


回答1:


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.




回答2:


Check out XSP (about halfway down this page)

Mono & ASP.NET

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

Hope that helps.



来源:https://stackoverflow.com/questions/10301788/developing-a-web-app-with-mono-opensource-net-any-examples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!