Book Image

Modern Web Development with ASP.NET Core 3 - Second Edition

By : Ricardo Peres
Book Image

Modern Web Development with ASP.NET Core 3 - Second Edition

By: Ricardo Peres

Overview of this book

ASP.NET has been the preferred choice of web developers for a long time. With ASP.NET Core 3, Microsoft has made internal changes to the framework along with introducing new additions that will change the way you approach web development. This second edition has been thoroughly updated to help you make the most of the latest features in the framework, right from gRPC and conventions to Blazor, which has a new chapter dedicated to it. You’ll begin with an overview of the essential topics, exploring the Model-View-Controller (MVC) pattern, various platforms, dependencies, and frameworks. Next, you’ll learn how to set up and configure the MVC environment, before delving into advanced routing options. As you advance, you’ll get to grips with controllers and actions to process requests, and later understand how to create HTML inputs for models. Moving on, you'll discover the essential aspects of syntax and processes when working with Razor. You'll also get up to speed with client-side development and explore the testing, logging, scalability, and security aspects of ASP.NET Core. Finally, you'll learn how to deploy ASP.NET Core to several environments, such as Azure, Amazon Web Services (AWS), and Docker. By the end of the book, you’ll be well versed in development in ASP.NET Core and will have a deep understanding of how to interact with the framework and work cross-platform.
Table of Contents (26 chapters)
1
Section 1: The Fundamentals of ASP.NET Core 3
7
Section 2: Improving Productivity
14
Section 3: Advanced Topics
Appendix A: The dotnet Tool

What this book covers

Chapter 1, Getting Started with ASP.NET Core, explains the very basics of .NET and ASP.NET Core, including the MVC pattern, which is the typical usage pattern of ASP.NET Core.

Chapter 2, Configuration, presents you with the configuration options available to .NET/ASP.NET Core developers.

Chapter 3, Routing, explains how an HTTP request is mapped to controller actions by means of routes, how they are selected, and how the parameters are matched.

Chapter 4, Controllers and Actions, explains how controllers and actions work, what API and OData controllers are, what the life cycle of a controller is, and how controllers are found.

Chapter 5, Views, explains how to work with views, which make up the user interface of ASP.NET Core.

Chapter 6, Using Forms and Models, shows us how to work with user-submitted data in forms.

Chapter 7, Implementing Razor Pages, describes what Razor Pages are—an alternative development model for ASP.NET Core.

Chapter 8, API Controllers, shows us how to work with API (non-visual) controllers.

Chapter 9, Reusable Components, talks about reusability in ASP.NET Core.

Chapter 10, Understanding Filters, talks about the different kinds of filters available to ASP.NET Core developers.

Chapter 11, Security, shows us how to implement authentication and authorization. Here, we will also cover how to enforce HTTPS security and how to prevent tampering.

Chapter 12, Logging, Tracing, and Diagnostics, explains how we can get a glimpse of what is going on with our ASP.NET Core application.

Chapter 13, Understanding How Testing Works, explains how to add unit and functional/integration tests to our solutions.

Chapter 14, Client-Side Development, covers how to integrate ASP.NET Core with common client-side frameworks.

Chapter 15, Improving the Performance and Scalability, covers how to improve the performance of our web application.

Chapter 16, Real-Time Communication, will help us learn how to apply real-time communication techniques to code.

Chapter 17, Introducing Blazor, is a new addition to this version and will explain Blazer for interoperability, dependency injections, HTTP calls, and more.

Chapter 18, gRPC and Other Topics, is a collection of topics and framework details that an ASP.NET Core developer ought to know but that didn't fit into the rest of the chapters of this book.

Chapter 19, Application Deployment, will help us learn how to deploy an ASP.NET Core application to different targets, such as on-premises and the cloud.

Chapter 20, Appendix A: The dotnet Tool, provides a short description of the basics and otheruseful topics relating to ASP.NET Core, including a description of its tools and features.