NancyFx
Misc Resources
Authentication Resources
- google Facebook Twitter oauth using nancy
- angulsjs and nancy stateless auth
- NancyFx Authentication Overview
- Token Authentication with NancyFx
- Forms Authentication with NancyFx
- Detailed forms authentication example
- Stateless Authentication with NancyFx
Nancy Visual Studio Extensions
- Install the Visual Studio Templates
- NancyFx ReSharper Extensions
Nancy Async Await
Steps for NancyFx in a new Project
- Create a new ASP.NET empty website
- Install the Nuget package
Install-Package Nancy
- Configure Katana by following these steps
- Create a HelloWorld module
public class HelloModule : NancyModule
{
public HelloModule()
{
Get["/"] = parameters => "Hello World";
}
}
Poco Classes
- Database to Poco Classes - This will automatically generate your poco classes from DB Tables.
Dapper
Dapper Extensions
https://github.com/tmsmith/Dapper-Extensions
Install-Package DapperExtensions
or
Dapper.SimpleCRUD
https://github.com/ericdc1/Dapper.SimpleCRUD
Install-Package Dapper.SimpleCRUD
https://github.com/ericdc1/Dapper.SimpleCRUD/wiki/T4-Template
or
Dapper.Rainbow ?
or
Dapper dot net async
https://github.com/bkaid/dapper-dot-net
Install-Package Dapper-Async
http://stackoverflow.com/questions/10030285/dapper-rainbow-vs-dapper-contrib
Dapper.Contrib - Tracks Entities
Dapper.Rainbow - Basic Crud
Swapping out the Default JSON Serializer
Install-Package Nancy.Serialization.JsonNet
Testing Nancy
Hosting Nancy
File System
- Equivant to Server.MapPath("~/") for Nancy
- Original Answer here: stack overflow
use IRootPathProvider
call GetRootPath()
Then use Path.Combine()
Request Pipeline Logging
The OmniSharp Server Bootstrapper shows a fantastic example of logging incoming and outgoing web requests.