-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
In this chapter, we'll build a front-end application using Blazor WebAssembly (WASM) and connect it to an existing Web API application to work with remote data. Specifically, we'll be building a user interface for the fictional trading card game we built in the last chapter.
We'll go step by step, seeing how you connect a Blazor frontend to an existing ASP.NET Web API, structure a functioning user interface with Bootstrap 5.3, and overcome key challenges in serialization, cross-origin resource sharing (CORS), and authentication.
By the time we're done with this chapter, you'll have a better understanding of the Blazor ecosystem, understand the various Blazor application models, have walked through a few sample pages and services, and seen how Blazor can be used as a client web application capable of talking to external APIs.
This chapter covers the following topics: