Markupolation
and HTML Over The Wire
Content:
This code has been written with Visual Studio 2022 Preview.
Blazor is a .NET frontend web framework that supports both server-side rendering and client interactivity in a single programming model.
Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs.
.NET Aspire is an opinionated, cloud ready stack for building observable, production ready, distributed applications.
Blazor Web App + Azure Functions + .NET Aspire:
Markupolation.Sample.Blazor
Markupolation.Sample.Functions
Markupolation.Sample.Aspire.AppHost
Markupolation.Sample.Aspire.ServiceDefaults
Prerequisite:
Run sample:
dotnet run --project Markupolation.Sample.Aspire.AppHost
Blazor Site:
Aspire Dashboard:
htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext.
Minimal APIs are a simplified approach for building fast HTTP APIs with ASP.NET Core.
YARP (which stands for "Yet Another Reverse Proxy") is a project to create a reverse proxy server.
.NET Aspire is an opinionated, cloud ready stack for building observable, production ready, distributed applications.
HTMX + Minimal API + YARP + .NET Aspire:
Markupolation.Sample.Htmx
Markupolation.Sample.Api
Markupolation.Sample.ApiGateway
Markupolation.Sample.Aspire.AppHost
Markupolation.Sample.Aspire.ServiceDefaults
Prerequisite:
Run sample:
dotnet run --project Markupolation.Sample.Aspire.AppHost
HTMX Site:
Aspire Dashboard:
Spectre.Console is a .NET library that makes it easier to create beautiful, cross platform, console applications.
Playwright for .NET is the official language port of Playwright, the library to automate Chromium, Firefox and WebKit with a single API.
Spectre.Console + Playwright for .NET:
Markupolation.Sample.Examples
Prerequisite:
- Install .NET 8.0
- Build:
dotnet build Markupolation.Sample.Examples
- Install Playwright:
.\bin\Debug\net8.0\playwright.ps1 install
Run sample:
dotnet run --project Markupolation.Sample.Examples