by skrowl · 12y ago · 0 comments
https://github.com/NancyFx/Nancy
EDIT: It seems to be a .NET clone of node.js
(Thus the name. Frank Sinatra's daughter is named Nancy Sinatra)
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
How to make this work, pretty please?
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
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.
[1] - http://servicestack.net [2] - https://github.com/ServiceStack/ServiceStack
.NET has always been able to do what Node does anyway. It has had HttpListener since v1.0...
You can do it, but why bother writing all those crud operations yourself??
Even with complicated SQL you can hand roll it and then tell the EF which class you're.returning and it'll handle all the boring `rs.GetInt(rs.GetOrdinal("ID"))` crap.
When you use a language with real variable types, it's less of an issue... If you really want it, you could shoehorn generators and other db platforms into the hyena[1] package.
In general, I've found that using databases tend to be much more straight forward under node, and that using ORM tools are less necessary.
Using Type dynamic - http://msdn.microsoft.com/en-us/library/dd264736.aspx