Technical requirements
The Blazor WebAssembly code used throughout this chapter is available in this book’s GitHub repository:
https://github.com/PacktPublishing/Mastering-Blazor-WebAssembly/tree/main/Chapter_08/Chapter_Content
Within this chapter, there will be a separate API project that you can clone from the GitHub repository too:
https://github.com/PacktPublishing/Mastering-Blazor-WebAssembly/tree/main/Chapter_08/API
The API project is required to test the calls, so after cloning the API solution, you can run the project just like running Blazor WebAssembly using either of these two options:
- Open the terminal in the API project folder and run these commands:
dotnet builddotnet run
- Alternatively, run the project using the Start button in Visual Studio.
If the project runs successfully, navigate in the browser to https://localhost:7188
and you should see the Swagger (API documentation) page.
Figure 8.1 – BooksStore...