Author: Jonas Fagerberg
Pub Date: 2019
Size: 10 Mb
Want to learn ASP.NET Core 2.2 MVC, Razor Pages, API, JSON Web Tokens (JWT) and HTTPClient?
- C# (Intermediate level; including Generics, Reflection, async/await and Object-Oriented Programming (OOP))
- MVC/HTML5/CSS3 (Basic knowledge)
I want to welcome you to ASP.NET Core 2.2 MVC, Razor Pages, API, JSON Web Tokens & HttpClient. This book will guide you through creating a video course membership site secured with JSON Web Tokens.
This book’s target audience is developers who want to learn how to build ASP.NET Core 2.2 MVC, Razor Page, and API applications. The API has JSON Web Token (JWT) authentication and authorization, and the Razor Pages calls the API with HttpClient. You should be an intermediate level C# developer with some experience in MVC, Entity Framework, HTML5, and CSS3. The book presupposes that you have a solid C# foundation with good knowledge in OOP, Linq/Lambda, generics, and asynchronous calls; this is not a book about the C# language.
You will learn ASP.NET Core 2.2 by building three applications in five projects. The first application is a UI for users registered with the membership site built with the MVC tem¬plate; the second is an administration UI built with Razor Pages; the third is an API secured with JSON Web Token authentication and authorization that the administration applica¬tion calls with HttpClient. All three applications use several services with differing purpos¬es. Apart from the three application projects, a project for shared resources is created as well as a database project with the sole purpose of handling the shared Entity Framework Core 2.2 database. When finished, you will have created a fully functioning video course website, where users can register to get access to video content, and admini¬strators can add and modify course content and users.
You should already be familiar with MVC 5 or ASP.NET Core to get the most from this book; it delivers the content in a fast, no-fluff way. The book is practical and tactical, where you will learn as you progress through the modules and build real web applications in the process. To spare you countless pages of fluff (filler material), only valuable information, pertinent to the task at hand, is discussed. The benefit is a shorter and more condensed book, which will save you time and give you a more enjoyable experience.
The goal is to learn ASP.NET Core 2.2 by building web projects: an experience that you can put in your CV when applying for a job or a consultant position, or when negotiating a higher salary.
By the end of this book, you will be able to create ASP.NET Core 2.2 applications on your own, which can create, edit, delete, and view data in a database.
Technologies, frameworks, and languages you will use:
- Visual Studio 2019
- ASP.NET Core 2.2
- MVC, Razor Pages, and API applications
- Services (To provide your functionality as a reusable service)
- Middleware (To provide your functionality to the HTTP Request pipeline)
- Entity Framework (To create and communicate with a database)
- Dependency Injection (To inject objects into constructors)
- Bootstrap (To style and create a responsive design)
- LINQ (To query the database)
- Tag Helper (to clean up the HTML and enable reuse)
- HTML Helper methods (to clean up your HTML and enable reuse)
- Partial views (to clean up your views and enable reuse)
What you will implement:
- A Razor Page web application
- An MVC web application
- An API web application
- A data-layer project referenced from the other web applications