Skip to content

Latest commit

 

History

History
 
 

samples

Markupolation Sample Code

Content:

This code has been written with Visual Studio 2022.

Blazor + Api

Blazor - Use the power of .NET and C# to build full stack web apps without writing a line of JavaScript.

Blazor WebAssembly + Minimal API:

  • Markupolation.Sample.Api
  • Markupolation.Sample.Blazor

Prerequisite:

  1. Install .NET 6.0
  2. Install Tye

Run sample:

tye run tye-blazor.yaml

Blazor Site:

https://localhost:8080/

Tye Dashboard:

http://localhost:8000/

HTMX + Api

</> htmx - high power tools for HTML

HTMX + Minimal API:

  • Markupolation.Sample.Api
  • Markupolation.Sample.Htmx

Prerequisite:

  1. Install .NET 6.0
  2. Install Tye

Run sample:

tye run tye-htmx.yaml

HTMX Site:

https://localhost:8080/

Tye Dashboard:

http://localhost:8000/

Functions

Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs.

Azure Functions:

  • Markupolation.Sample.Functions

Prerequisite:

  1. Install .NET 6.0
  2. Install the Azure Functions Core Tools

Run sample:

cd Markupolation.Sample.Functions
func start

Examples

Console application:

  • Markupolation.Sample.Examples

Prerequisite:

  1. Install .NET 6.0

Run sample:

cd Markupolation.Sample.Examples
dotnet run