https://github.com/persteenolsen/blazor-display-list
A Blazor App using WebAssembly and .NET 6 - Displays a List
https://github.com/persteenolsen/blazor-display-list
blazor dotnet spa webassembly
Last synced: about 2 months ago
JSON representation
A Blazor App using WebAssembly and .NET 6 - Displays a List
- Host: GitHub
- URL: https://github.com/persteenolsen/blazor-display-list
- Owner: persteenolsen
- License: mit
- Created: 2024-03-09T14:15:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T17:49:49.000Z (over 2 years ago)
- Last Synced: 2025-07-26T09:14:20.659Z (11 months ago)
- Topics: blazor, dotnet, spa, webassembly
- Language: HTML
- Homepage: https://blazor.display.list.persteenolsen.com/
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blazorapp-webassembly-display-list
Blazor App
.NET 6
ASP.NET Core Blazor WebAssembly - Display a list of items / Users
# Creates a global json
dotnet new globaljson --sdk-version 6.0.320 --force
# Functionality of the Web App
- Display a Lit of Items as a SPA Demo
# Tech used for creating the Web App
- A Blazor Webassembly Web Client as a SPA
- A traditional Webhotel for hosting
- VS Code
# Development
dotnet run
# Production
Create a self contained build for production at the remote server / traditionel web hotel
dotnet publish webapi.csproj --configuration Release --runtime win-x86 --self-contained
Upload the build to remote server
At my remote servers the web.config needs to be without the folowing:
hostingModel="inprocess"
# Some issues to handle
_imports.razor seems not to take of the loading of the Razor files
To solve that issue I have been loading the folders / files needed like in "app.razor":
@using BlazorApp.Shared
@using Microsoft.AspNetCore.Components.Routing
# Usefull checklist for BlazorApp.csproj
- Sdk=Microsoft.NET.Sdk.BlazorWebAssembly
- RootNameSpace BlazorApp RootNameSpace