Book description
Learn to implement ASP.NET Core features to build effective software that can be scaled and maintained easily
About This Book
- Practical solutions to recurring issues in the web development world
- Recipes on the latest features of ASP.Net Core 2.0
- Coverage of Bootstrap, Angular, and JavaScript lets you supercharge your frontend
Who This Book Is For
This book is written for the ASP.NET developer who wants to deliver professional-standard software, quickly and efficiently. It's filled with hands-on recipes, practical advice, and guidance to help developers with every aspect of the ASP.NET development cycle. Whether you've just started out or are a seasoned pro, the Asp.Net Core 2.0 Cookbook is written for you.
What You Will Learn
- Build ASP.Net Core 2.0 applications using HTTP services with WebApi
- Learn to unit-test, load test, and perform test applications using client-side and server-side frameworks
- Debug, monitor and troubleshoot ASP.Net Core 2.0 applications using popular tools
- Reuse components with NuGet and create modular components with middleware
- Create applications using client-side technologies such as HTML5, JavaScript, jQuery, and Angular
- Build responsive and dynamic UIs for your MVC apps using Bootstrap
- Leverage tools like Karma, Jasmine, QUnit, xUnit, Selenium, Microsoft Fakes, and Visual Studio 2017 Enterprise
In Detail
The ASP.NET Core 2.0 Framework has been designed to meet all the needs of today's web developers. It provides better control, support for test-driven development, and cleaner code. Moreover, it's lightweight and allows you to run apps on Windows, OSX and Linux, making it the most popular web framework with modern day developers.
This book takes a unique approach to web development, using real-world examples to guide you through problems with ASP.NET Core 2.0 web applications. It covers Visual Studio 2017- and ASP.NET Core 2.0-specifc changes and provides general MVC development recipes. It explores setting up .NET Core, Visual Studio 2017, Node.js modules, and NuGet. Next, it shows you how to work with Inversion of Control data pattern and caching. We explore everyday ASP.NET Core MVC 2.0 patterns and go beyond it into troubleshooting. Finally, we lead you through migrating, hosting, and deploying your code.
By the end of the book, you'll not only have explored every aspect of ASP.NET Core MVC 2.0, you'll also have a reference you can keep coming back to whenever you need to get the job done.
Style and approach
Asp.Net Core 2.0 has been redesigned to meet the needs of today's web developers. Open-source, cross-platform, and fully integrated with the most powerful front-end frameworks, it still has all the benefits of ease and speed of development that have made it one of the most popular web frameworks in production today. Asp.Net Core 2.0 Development Cookbook takes a unique approach to web development. Based around the tasks that you will be using every day when making websites, it will guide you through all the common problems you'll face when developing web applications.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
-
Cross-Platform with .NET Core
- What is ASP.NET Core 2.0?
- What's new in ASP.NET and CLR?
- Installing or updating .NET Core
- Managing NuGet packages in ASP.NET Core applications
- Creating an ASP.NET Core MVC application on Linux
- Creating an ASP.NET Core MVC application on Linux with Docker
- Creating an ASP.NET Core MVC application on macOS
- Creating and running an ASP.NET Core MVC application on Azure
- Visual Studio 2017, C# 6, IDEs, and Roslyn
- Working with npm, Frontend Package Managers, and Task Runners
- Reusing Code with NuGet
- SOLID Principles, Inversion of Control, and Dependency Injection
- Data Access - EF7 with Repository, SQL Server, and Stored Procedures
- Accessing data with Micro ORMs, NoSQL, and Azure
- Cache and Session - Distributed, Server, and Client
-
Routing
- Before ASP.NET Core
- Since ASP.NET Core
- MVC and Web API routing
- The route order
- Routing with ASP.NET Core
- Creating a route using convention routing
- Creating a route using attribute routing
- Creating a custom route using IRouter
- Creating a route constraint
- Creating a domain route
- Creating SEO-friendly routes
- ASP.NET Core MVC
- Web API
-
Filters
- Introduction
- Managing authentication and authorization with policies, requirements, and filters
- Managing dependency injection with filters
- Creating and using an action filter
- Creating and using a result filter
- Creating and using a resource filter
- Creating and using an exception filter
- Using a filter globally versus using a middleware
- Views, Models, and ViewModels
- Razor and Views
- TagHelpers and ViewComponents
- OWIN and Middleware
- Security
- Frontend Development
- Deployment and Hosting
- Other Books You May Enjoy
Product information
- Title: ASP.NET Core MVC 2.0 Cookbook
- Author(s):
- Release date: February 2018
- Publisher(s): Packt Publishing
- ISBN: 9781785886751
You might also like
book
ASP.NET Core 3 and React
Build modern, scalable, and cloud-ready single-page applications using ASP.NET Core, React, TypeScript, and Azure Key Features …
book
Customizing ASP.NET Core 5.0
A guide to discovering the hidden behaviors of ASP.NET Core that can be customized to optimize …
book
ASP.NET Core 2 and Vue.js
Leverage ASP.NET core 2.0 web API and the power of Vue.js at the client side to …
book
ASP.NET Core 5 for Beginners
Learn how to build web applications efficiently using ASP.NET Core 5 with the C# programming language …