My Account Log in

2 options

Building Blazor WebAssembly Applications with GRPC : Learn How to Implement Source Generators and GRPC in Your Blazor Apps for Better Performance / Václav Pekárek.

Ebook Central Academic Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Pekárek, Václav, author.
Language:
English
Subjects (All):
Web site development.
Web sites--Authoring programs.
Web sites.
Physical Description:
1 online resource (197 p.)
Edition:
First edition.
Place of Publication:
Birmingham, England : Packt Publishing Ltd., [2022]
System Details:
Mode of access: World Wide Web.
Biography/History:
Pekarek Vaclav: Vaclav Pekarek is an experienced developer with 10 years of web development experience using. NET and C#. He is also a Microsoft Certified Professional. Vaclav is the owner of a small IT company in Ostrava, Czech Republic.
Summary:
Explore the power of Blazor WebAssembly, gRPC, and source generators for easy and quick web development Key Features Get to grips with integration between Blazor, gRPC, and source generators in real-life projects Develop a complete Blazor WebAssembly project that takes advantage of gRPC's capabilities Explore best practices for building a high-performance web application with Blazor and C# Book Description Building Blazor WebAssembly Applications with gRPC will take you to the next level in your web development career. After working through all the essentials of gRPC, Blazor, and source generators, you will be far from a beginner C# developer and would qualify as a developer with intermediate knowledge of the Blazor ecosystem. After a quick primer on the basics of Blazor technology, REST, gRPC, and source generators, you'll dive straight into building Blazor WASM applications. You'll learn about everything from two-way bindings and Razor syntax to project setup. The practical emphasis continues throughout the book as you steam through creating data repositories, working with REST, and building and registering gRPC services. The chapters also cover how to manage source generators, C# and debugging best practices, and more. There is no shorter path than this book to solidify your gRPC-enabled web development knowledge. By the end of this book, your knowledge of building Blazor applications with one of the most modern and powerful frameworks around will equip you with a highly sought-after skill set that you can leverage in the best way possible. What you will learn Master routing and test your learning with demo applications Create service and controller classes for your API endpoints Use gRPC with Blazor instead of REST and revamp your applications Study partial classes, attributes, and more in source generators Write reusable Razor components and debug your code effectively Understand the semantic model of C# code Discover how to read and navigate through syntax trees Build dynamic websites without using JavaScript Who this book is for This book is for beginner C# developers who want to learn how to create more performant web apps with less code using Blazor, the gRPC protocol, and source generators. The book assumes a basic understanding of C#, HTML, and web development concepts.
Contents:
Cover
Title Page
Copyright and Credits
Contributors
Table of Contents
Preface
Chapter 1: Introducing Blazor, gRPC, and Source Generators
Technical requirements
Using the Blazor framework to create websites
Using Blazor WebAssembly for single-page applications
Harnessing advantages of progressive web applications using Blazor
Understanding how Blazor uses Razor syntax
Using JavaScript in Blazor
Understanding the REST API as the default Blazor communication interface
Understanding gRPC and how it is different from REST
How protocol buffers work
Why we still use REST
What are source generators and how do they work?
Summary
Further reading
Chapter 2: Creating a Blazor WebAssembly Application
Learning how to write Razor syntax
Writing implicit Razor expressions
Writing explicit Razor expressions
Writing inline expressions
Writing code block expressions
Writing control structures
Writing top-level directives
Writing inline directives
Creating Razor components
Using components in other components
Passing parameters to components
Creating components with child content
Communicating with the parent component
Understanding the component life cycle
Structuring component code
Understanding page routing in Blazor
Navigating between pages
Page directive
Route constraints
Catch-all parameters
Project overview and preparation
Creating a demo Blazor WebAssembly project
Examining the project
Preparing the demo project
Chapter 3: Creating a Database Using Entity Framework Core
Creating a data repository using EF
Installing NuGet packages
Enabling EF
Creating database representation in C#
Configuring EF Core
Migrating code to the database
Creating entities in the database
Using generic services for data manipulation
Creating models
Mappings between models
Creating data services
Creating a new record
Reading a single record
Reading all records
Updating records
Deleting records
Registering data services
Chapter 4: Connecting Client and Server with REST API
Exposing CRUD operations in API controllers
Consuming a REST API in Blazor components
Creating and editing data
Viewing the data
Extending the demo project
Chapter 5: Building gRPC Services
What are the benefits of using gRPC services?
How does communication work in gRPC?
Understanding the protocol buffer language
Creating messages
Field types
Default values
The reserved keyword
Defining methods
gRPC services in C#
Two ways of implementing
Implementing gRPC services using .proto files
Creating Blazor components
Preparation for generic components
Creating generic list components
Creating generic form components
Notes:
Description based upon print version of record.
Summary
Includes bibliographical references and index.
OCLC-licensed vendor bibliographic record.
Description based on print version record.
ISBN:
9781804613290
1804613290
OCLC:
1348488173

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account