3 ms·
no it's not. it's a .NET clone of sinatra. it's a web framework. it has little to nothing to do with node.js. although .net have pretty powerful multiprocessing
by rjzzleep 13y ago
no it's not. it's a .NET clone of sinatra. it's a web framework. it has little to nothing to do with node.js. although .net have pretty powerful multiprocessing and async routines, and can therefore be connected to node.js without too much effort.
- skrowl 13y agoHow does it compare to Web API?
- JohnBooty 13y agoNancy, like Sinatra, is a general-purpose web framework. You could implement an API in it, or you could implement a user-facing website. Nancy and Sinatra are typically used for smaller sites. They're based around routes, controllers, and views but they don't (for better or worse) lock you into an MVC project structure like ASP.Net MVC or Rails. Web API, by comparison, is pretty much "just for implementing a web-based API" and not something you'd want to use for a user-facing web application that serves up HTML pages.
- hhandoko 13y agoServiceStack [1] is a closer comparison to Web API. A lot easier to set up and runs in Mono, but not free (although it is open source [2]). [1] - http://servicestack.net http://servicestack.net [2] - https://github.com/ServiceStack/ServiceStack https://github.com/ServiceStack/ServiceStack
- brokenparser 13y agoIf you don't mind me asking, I'm stuck trying to get the project templates to work with Monodevelop 4. I'm using this repository to run the latest Mono and Monodevelop on Fedora: http://download.opensuse.org/repositories/home:/tpokorra:/mono/Fedora_20/ http://download.opensuse.org/repositories/home:/tpokorra:/mo... When I open the vsix file, all I get is a hexdump. I also tried installing it as an add-in, but it doesn't appear to accept vsix files. The goal is to get past step one of these instructions: https://github.com/NancyFx/Nancy/wiki/Introduction https://github.com/NancyFx/Nancy/wiki/Introduction How to make this work, pretty please?
- rjzzleep 13y agomonodevelop is not really supported. i would try compiling the latest mlnodevelop and see if there is a fork of the nancy templates. you can work around that issue if you make an empty asp.net project and then use nuget to install-package nancy.hosting.aspnet at least i think so, i haven't been doing .net in a while
- brokenparser 13y agoSUCCESS! I followed these: http://rubygems.org/gems/albacore/versions/1.0.0.rc.1 http://rubygems.org/gems/albacore/versions/1.0.0.rc.1 (for the command to install albacore), and https://github.com/NancyFx/Nancy/wiki/Running-Nancy-on-your-Raspberry-Pi https://github.com/NancyFx/Nancy/wiki/Running-Nancy-on-your-... This works on Fedora and probably other distributions as well, though this uses HTTP which might be less optimal than FastCGI with Fos. I got Fos to compile with Mono but it's not usable yet, it can't find IAppBuilder in my "console" application no matter what references or using directives I add. Nowin compiles cleanly but the example projects don't, so it'll take some effort to get it to work. Things are progressing, though. But I really can't recommend anyone use Mono for web development as it stands.