marinasundstrom / MinimalBlazorAppSample

Minimal Blazor app with Backend API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal Blazor app with Backend API

Todos

Features

Hosted Blazor WebAssembly app - on ASP.NET Core backend.

Frontend

  • Blazor - MudBlazor UI
  • Localization
  • Color theme - Light and Dark mode
  • Chat sample
    • SignalR client - Generated with Source Generator
    • JS interop with JSImport - Generated with Source Generator
  • Todos sample
    • Web API clients - Generated from Open API

Backend

  • Minimal API endpoints
    • Versioned API
    • Open API with Swagger UI
  • SignalR
  • Entity Framework Core - Sqlite database
  • Integration tests

Run

To run the app, execute this in the Server directory:

dotnet run

or

dotnet watch

Debugging

The project has been set up to run in VS Code.

Attach using the defined launch configurations.

Debug Client (Frontend)

To debug the Client, start the Server project. Then, attach the debugger to the browser with the "Client Attach (WASM)" launch configuration

A debug instance of your selected browser (Chrome or Edge) will then launch.

Debug Client

Additional information

This project contains code from MudBlazor Docs site project - for handling color theme.

About

Minimal Blazor app with Backend API


Languages

Language:C# 57.2%Language:HTML 38.1%Language:CSS 3.7%Language:JavaScript 1.1%