Instant Nancy Web Development
()
About this ebook
Nancy is a C# web framework which aims to provide you ,the application developer, with an easy path to follow, where things will naturally fall into place and work. Nancy is a powerful, flexible, and lightweight web framework that allows you to get on with your job.
Instant Nancy Web Development will give Readers practical introduction to building, testing, and deploying web applications with Nancy. You will learn how to take full advantage of Nancy to build clean application code, and will see how this code lends itself nicely to test driven development. You will also learn how to hook into Nancy to easily extend the framework.
Instant Nancy Web Development offers you an in-depth exploration of all the major features of the Nancy web framework, from basic routing to deployment in the Cloud, and from model binding to automated tests.
You will learn how to build web applications with Nancy and explore how to build web sites using Razor views. Next, you will learn how to build web based APIs suitable for JavaScript clients, mobile clients, and even desktop applications. In fact, you will learn how to easily combine the two into one.
Finally, you will learn how to leverage Nancy to write clean and maintainable web applications quickly.
ApproachFilled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. A practical, step-by-step guide featuring recipes that will get you up and running quickly with Nancy.
Who this book is forIf you are a .NET oriented web developer who is curious to find out what lies beyond the Microsoft provided frameworks, then this book is for you! It's beneficial to have a good knowledge of C# and .NET, as well as a basic working knowledge of HTTP. If testability is important to you, and you're looking for a lightweight, code focused approach to building web applications, this book offers you all the guidance that you will need.
Christian Horsdal
"Christian Horsdal is an independent consultant working with clients as an architect, consultant, and developer. He works with clients of all types, from small start-ups to large global companies. Christian is an expert .NET architect and developer who mixes and matches commercial, open source, and tailor-made components in a quest to create simple and lean solutions that allow for quick and agile development. Christian can be found online through his website http://www.horsdal-consult.dk/."
Related to Instant Nancy Web Development
Related ebooks
MEAN Blueprints Rating: 0 out of 5 stars0 ratingsASP.NET Web API Security Essentials Rating: 0 out of 5 stars0 ratingsUltimate Web Authentication Handbook Rating: 0 out of 5 stars0 ratingsInstant Spring for Android Starter Rating: 0 out of 5 stars0 ratingsRESTful Java Web Services Security Rating: 0 out of 5 stars0 ratingsSignalR on .NET 6 - the Complete Guide Rating: 0 out of 5 stars0 ratingsProfessional ASP.NET MVC 4 Rating: 4 out of 5 stars4/5NextAuth.js in Depth: Definitive Reference for Developers and Engineers Rating: 0 out of 5 stars0 ratingsProfessional C# 5.0 and .NET 4.5.1 Rating: 0 out of 5 stars0 ratingsMastering The Accounts and Social Framework: Social Media Integration Using These Ios7 Frameworks Rating: 0 out of 5 stars0 ratingsPlone 3 Intranets Rating: 0 out of 5 stars0 ratingsBuilding Mobile Applications Using Kendo UI Mobile and ASP.NET Web API Rating: 0 out of 5 stars0 ratingsOAuth 2 Handbook: Simplifying Secure Authorization Rating: 0 out of 5 stars0 ratingsPerformance Testing with JMeter 2.9 Rating: 0 out of 5 stars0 ratingsCybersecurity Blue Team Toolkit Rating: 2 out of 5 stars2/5Spring Boot and Single-Page Applications: Securing Your API with a Single-Page Application Frontend - Second Edition Rating: 0 out of 5 stars0 ratingsOracle JDeveloper 11g Handbook: A Guide to Fusion Web Development Rating: 0 out of 5 stars0 ratingsServiceStack 4 Cookbook Rating: 0 out of 5 stars0 ratingsPHP, MySQL, & JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Hello! Flex 4 Rating: 0 out of 5 stars0 ratingsSelenium with C#: Learn how to write effective test scripts for web applications using Selenium with C# (English Edition) Rating: 0 out of 5 stars0 ratingsWCF Multi-layer Services Development with Entity Framework - Fourth Edition Rating: 0 out of 5 stars0 ratingsBasics of OAuth Securely Connecting Your Applications Rating: 0 out of 5 stars0 ratingsNet Developer's Interview Toolkit: Dot Net Interview Preparation, #3 Rating: 0 out of 5 stars0 ratingsHacking into Hackers’ Head: A step towards creating CyberSecurity awareness Rating: 5 out of 5 stars5/5OpenID Connect - End-user Identity for Apps and APIs: API-University Series, #6 Rating: 0 out of 5 stars0 ratingsVisual Studio 2013 and .NET 4.5 Expert Cookbook Rating: 4 out of 5 stars4/5Beginning ASP.NET Security Rating: 0 out of 5 stars0 ratings
Internet & Web For You
The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 5 out of 5 stars5/5Get Into UX: A foolproof guide to getting your first user experience job Rating: 4 out of 5 stars4/5More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Canva Tips and Tricks Beyond The Limits Rating: 3 out of 5 stars3/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Ultimate guide for being anonymous: Avoiding prison time for fun and profit Rating: 5 out of 5 stars5/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Notion for Beginners: Notion for Work, Play, and Productivity Rating: 4 out of 5 stars4/5The Basics of User Experience Design by Interaction Design Foundation Rating: 4 out of 5 stars4/5How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsThe Gothic Novel Collection Rating: 5 out of 5 stars5/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5UX/UI Design Playbook Rating: 4 out of 5 stars4/5Build a WordPress Website From Scratch 2024: WordPress 2024 Rating: 0 out of 5 stars0 ratingsStop Asking Questions: How to Lead High-Impact Interviews and Learn Anything from Anyone Rating: 5 out of 5 stars5/5SEO For Dummies Rating: 4 out of 5 stars4/5Explain the Cloud Like I’m 10 Rating: 5 out of 5 stars5/5How To Start A Profitable Authority Blog In Under One Hour Rating: 5 out of 5 stars5/5Blogging For Dummies Rating: 0 out of 5 stars0 ratings
Reviews for Instant Nancy Web Development
0 ratings0 reviews
Book preview
Instant Nancy Web Development - Christian Horsdal
Table of Contents
Instant Nancy Web Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
Style matters
The super duper happy path
Sweet spot
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Instant Nancy Web Development
Building and running your first Nancy application (Simple)
Getting ready
How to do it...
How it works...
There's more...
Nancy testing – your first Nancy tests (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Routes and model binding (Intermediate)
Getting ready
How to do it...
There's more...
Taking a dependency – introducing the bootstrapper (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Content negotiation and more model binding (Advanced)
Getting ready
How to do it...
How it works...
Adding views (Intermediate)
Getting ready
How to do it...
There's more...
Adding static content (Intermediate)
Getting ready
How to do it...
There's more...
Hosting Nancy on the Cloud (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Handling cross-cutting concerns – Before, After, and Error hooks (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Authenticating users (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Separating applications and hosting (Advanced)
Getting ready
How to do it...
Using async handlers (Advanced)
Getting ready
How to do it...
How it works...
There's more...
Instant Nancy Web Development
Instant Nancy Web Development
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2013
Production Reference: 1230913
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-391-0
www.packtpub.com
Credits
Author
Christian Horsdal
Reviewer
Michele Capra
Acquisition Editor
Antony Lowe
Commissioning Editor
Nikhil Chinnari
Technical Editor
Chandni Maishery
Copy Editors
Mradula Hegde
Alfida Paiva
Project Coordinator
Esha Thakker
Proofreader
Karen Estrada
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda
Cover Image
Sheetal Aute
About the Author
Christian Horsdal is an independent consultant working with clients as an architect, consultant, and developer. He works with clients of all types, from small start-ups to large global companies.
Christian is an expert .NET architect and developer who mixes and matches commercial, open source, and tailor-made components in a quest to create simple and lean solutions that allow for quick and agile development.
Christian can be found online through his website http://www.horsdal-consult.dk/.
About the Reviewer
Michele Capra is an Italian software consultant, international speaker, and trainer on software development with Microsoft Technologies. He got his master's degree in Software Engineering in 2009 after working as a visiting researcher at Trinity College of Dublin. In the same year, he started working in the software industry and took part in a wide variety of software projects. He has been working for several financial institutions such as banks and funds, as well as start-ups. In these projects, he had the opportunity to learn and practice agile methodologies, for example, Test Driven Development, as well as to study Microsoft Technologies such as WPF, ASP.NET MVC, Windows Phone, and WinRT.
During his career, he has been speaking at several local .NET user-group events (such as WebAPI CodeCage, Windows Phone Refresh, C# Unleashed) as well as national (for example, WhyMCA) and international conferences (for example, Codemotion Berlin).
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
Support files, eBooks, discount offers and morehttp://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and bookmark content
On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with