Nancy framework sample application

11,642

Solution 1

Hope you enjoyed the Pluralsight course :-)

Sample wise.. there's small samples inside the main Github repo here: https://github.com/NancyFx/Nancy/tree/master/src

There's a "port" of NerdDinner using Nancy and RavenDb here:

There's a new sample that I haven't yet had a chance to look at here:

To answer your questions specifically:

  1. You can use Nancy to create a website and a webapi in one site quite easily.
  2. There's several different types of authentication supported, the 0.12 release due shortly includes a "stateless" authentication system.
  3. Depends what they are, if they're tied specifically to MVC or WebForms then no, if they're client side stuff that uses AJAX then yes.
  4. Yes, this has been discussed on the forums with several options: https://groups.google.com/d/topic/nancy-web-framework/8MsU4zh2pN8/discussion

Solution 2

You may take a look at (yet another) blog site build with NancyFx (using get/post, viewbag, form authentication, testing and other basic staff):

Disclaimer: I have made it as a way to get familiar with NancyFX :) And I had fun!

Share:
11,642
Khuzema
Author by

Khuzema

I started developing using dBase III+, MS Access (FE/BE), SQL Server and now developing and leading project development on .Net. Now I am developing using Asp.Net (MVC/WebApi), HTML5, CSS, Javascript (JQuery/UI), SQL Server. Our vertical focus is Payroll, HR and Time Attendance for Middle-East market.

Updated on June 09, 2022

Comments

  • Khuzema
    Khuzema about 2 years

    We are looking to develop a new web application and came across to Nancy fx (actually I am enrolled with Pluralsight where they have a new course on nancy)

    I wanted to know a sample application ( one app or separate apps) showing some of features of Nancy Fx

    1. Development with Web api (as we have data which come thru web api). Also I want to know does we should have a web api application or there is no need, this can be served by Nancy Fx with one of it extension.
    2. Authentication (with restful capability (no need for cookies etc))
    3. Can we use third party control like telerik etc with it or not.
    4. Can we assign different view for mobile/desktop etc like in asp.net we can have order.mobile.cshtml or even specific to whether its iphone or android etc.

    Thanks

    Khuzema