You are previewing Instant Nancy Web Development.
O'Reilly logo
Instant Nancy Web Development

Book Description

Leverage the powerful and lightweight .NET-based Nancy Web Framework

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results

  • Build web applications and APIs using the Nancy Web Framework

  • Define routes and handle requests in clean and easy-to-follow code

  • Use flexible data binding and content negotiation in your Nancy Web APIs to easily support a multitude of client applications

In Detail

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.

Table of Contents

  1. Instant Nancy Web Development
    1. Instant Nancy Web Development
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. Style matters
        1. The super duper happy path
        2. Sweet spot
      2. What this book covers
      3. What you need for this book
      4. Who this book is for
      5. Conventions
      6. Reader feedback
      7. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant Nancy Web Development
      1. Building and running your first Nancy application (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      2. Nancy testing – your first Nancy tests (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Routes and model binding (Intermediate)
        1. Getting ready
        2. How to do it...
        3. There's more...
      4. Taking a dependency – introducing the bootstrapper (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Content negotiation and more model binding (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
      6. Adding views (Intermediate)
        1. Getting ready
        2. How to do it...
        3. There's more...
      7. Adding static content (Intermediate)
        1. Getting ready
        2. How to do it...
        3. There's more...
      8. Hosting Nancy on the Cloud (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Handling cross-cutting concerns – Before, After, and Error hooks (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Authenticating users (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Separating applications and hosting (Advanced)
        1. Getting ready
        2. How to do it...
      12. Using async handlers (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...