ebook img

ASP.NET Core PDF

288 Pages·2016·7.98 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview ASP.NET Core

WOW! eBook www.wowebook.org ASP.NET Core Essentials WOW! eBook www.wowebook.org Table of Contents ASP.NET Core Essentials Credits About the Author About the Reviewer www.PacktPub.com eBooks, discount offers, and more Why subscribe? Preface 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. Getting Started with ASP.NET Core ASP.NET Core - Unifying MVC, Web API, and Web Pages High-level overview Version numbers Putting it all together Differences between .NET Framework and .NET Core Full .NET Framework 4.6 Lightweight .NET Core Running ASP.NET Core on .NET Framework versus .NET Core What's new with Visual Studio 2015 and Visual Studio Code? Community Edition Professional and Enterprise Editions Visual Studio Code Running ASP.NET Core on Windows, Mac OS X, and Linux ASP.NET Core on Windows ASP.NET Core on Mac OS X ASP.NET Core on Linux Summary 2. Building Your First ASP.NET Core Application Project templates in Visual Studio 2015 Empty template Web API template Web Application template WOW! eBook www.wowebook.org Hello, ASP.NET - your first ASP.NET application Writing a response Launching the application Web files and folders Models, views, and controllers - an MVC refresher Controllers Models Views Web configuration with project.json Dependencies and frameworks Commands and tools Bundling and publishing Summary 3. Understanding MVC Building controllers Controller methods Basic controllers URL routes and conventions Implementing views Basic views Tag helpers in views ViewData, ViewBag, and TempData Designing models and ViewModels Creating models Binding models to views ViewModels and mapping Bringing it all together Scaffolding, validation, and model binding Database setup and data entry Exception handling Summary 4. Using Web APIs to Extend Your Application Understanding a Web API The case for Web APIs Creating a new Web API project from scratch Building your Web API project Configuring the Web API in your web application Setting up dependencies Parts of a Web API project Running the Web API project Adding routes to handle anticipated URL paths Understanding routes Setting up routes Testing routes WOW! eBook www.wowebook.org Consuming a Web API from a client application Testing with external tools Consuming a Web API from a mobile app Consuming a Web API from a web client Summary 5. Interacting with Web API using JavaScript Using JavaScript to interact with Web API Preparing the server-side code Client-side JavaScript JavaScript frameworks Single-page applications with AngularJS Getting started with AngularJS AngularJS syntax and features Building a web application with AngularJS Model-View-ViewModel (MVVM) with KnockoutJS Getting started with KnockoutJS KnockoutJS syntax and features Building a web application with KnockoutJS Task runners, bundling, and minification using Bower, Grunt, and Gulp Why do we need task automation? Using Bower as your package manager Using Gulp and Grunt as task runners Summary 6. Using Entity Framework to Interact with Your Database in Code Object-relational mapping in .NET Why use an ORM? Why Entity Framework? The evolution of Entity Framework EF 6.x for .NET Framework versus EF Core 1.0 What's different in EF Core Getting started with EF Core What else is new? Code First approach to database design and relationships Updating the models Updating the controllers Updating the views EF Code First migrations for database versioning and maintenance Setting up migrations Adding and removing migrations Running your application Summary 7. Dependency Injection and Unit Testing for Robust Web Apps Understanding IoC Pros and cons of DI WOW! eBook www.wowebook.org SOLID principles and Gang of Four patterns Loose coupling Implementing DI in ASP.NET Core Lifecycle management Constructor injection versus action injection Verifying the expected behavior DI options in ASP.NET Core Built-in IoC Autofac Other alternatives Writing unit tests Setting up a test project Running unit tests Going beyond the basics Summary 8. Authentication, Authorization, and Security Enabling authentication in ASP.NET High-level overview Authentication configuration External service providers Using authorization for application features High-level overview Basic authorization Roles and claims Protecting your data Data protection in ASP.NET Core Implementing data protection How it all works Implementing web application security Cross-site scripting Anti-forgery Cross-origin requests Summary 9. Deploying Your Application Deployment options Environment configuration Deploying your web app Deploying your database Deploying to IIS Setting up IIS Using the filesystem Importing a publish profile Deploying to Azure, Microsoft's cloud platform Creating a web app WOW! eBook www.wowebook.org Creating a virtual machine Deploying to Azure Continuous integration Preparing for CI Setting up Continuous Deployment The pitfalls of CI Summary WOW! eBook www.wowebook.org ASP.NET Core Essentials WOW! eBook www.wowebook.org ASP.NET Core Essentials Copyright © 2016 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 2016 Production reference: 1160916 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78588-915-8 www.packtpub.com WOW! eBook www.wowebook.org Credits Author Copy Editor Shahed Chowdhuri Safis Editing Reviewer Project Coordinator Steve Albers Ulhas Kambali Commissioning Editor Proofreader Dipika Gaonkar Safis Editing Acquisition Editor Indexer Sonali Vernekar Rekha Nair Content Development Editor Graphics Prashanth G Kirk D'Penha Technical Editor Production Coordinator Sushant S Nadkar Melwyn Dsa WOW! eBook www.wowebook.org

Description:
NET Core. ASP.NET Core - Unifying MVC, Web API, and Web Pages. High-level NET Core on Windows, Mac OS X, and Linux. ASP.NET Core on
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.