Appendix A. Adding an ASP.NET Core backend to a Blazor WebAssembly app

In this appendix, I’ll cover the steps required to add an ASP.NET Core backend to an existing Blazor WebAssembly application. The backend will be made up of an ASP.NET Core Web API, a .NET class library, and an SQLite database. It’s worth pointing out that if you’re starting a new project, then there is a template included that contains this exact setup, minus the database. It’s called the Blazor WebAssembly ASP.NET Core hosted template (covered in chapter 2). So, if you’re starting fresh, I would recommend using that and avoid the manual steps presented in this appendix.

NOTE We’ll be working on the Blazing Trails application from its state at the end of chapter 4. If you’re ...

Get Blazor in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.