Skip to content

Latest commit

 

History

History

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Markupolation Sample Code

Markupolation and HTML Over The Wire

Content:

This code has been written with Visual Studio 2022 Preview.

Blazor + Functions + Aspire

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:

  1. Install .NET 8.0
  2. Install the Azure Functions Core Tools
  3. Install .NET Aspire workload

Run sample:

dotnet run --project Markupolation.Sample.Aspire.AppHost

Blazor Site:

Aspire Dashboard:

Markupolation.Sample.Blazor

HTMX + Api + YARP + Aspire

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:

  1. Install .NET 8.0
  2. Install .NET Aspire workload

Run sample:

dotnet run --project Markupolation.Sample.Aspire.AppHost

HTMX Site:

Aspire Dashboard:

Markupolation.Sample.Htmx

Console + Playwright

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:

  1. Install .NET 8.0
  2. Build:
    • dotnet build Markupolation.Sample.Examples
  3. Install Playwright:
    • .\bin\Debug\net8.0\playwright.ps1 install

Run sample:

dotnet run --project Markupolation.Sample.Examples

Markupolation.Sample.Examples