{"id":23459424,"url":"https://github.com/devkimchi/blazor-hosting-model-sample","last_synced_at":"2025-04-11T21:37:34.687Z","repository":{"id":161364649,"uuid":"636060068","full_name":"devkimchi/blazor-hosting-model-sample","owner":"devkimchi","description":"This provides sample code that shows various types of Blazor hosting models - Server, WASM (hosted/standalone) and Hybrid (MAUI and WinForm). They all share the same components with minimal code changes.","archived":false,"fork":false,"pushed_at":"2023-05-07T10:59:16.000Z","size":1422,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T23:44:10.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devkimchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-04T03:32:06.000Z","updated_at":"2023-08-23T10:03:21.000Z","dependencies_parsed_at":"2023-09-02T06:18:02.151Z","dependency_job_id":null,"html_url":"https://github.com/devkimchi/blazor-hosting-model-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fblazor-hosting-model-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fblazor-hosting-model-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fblazor-hosting-model-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fblazor-hosting-model-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkimchi","download_url":"https://codeload.github.com/devkimchi/blazor-hosting-model-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248484942,"owners_count":21111751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T06:14:30.409Z","updated_at":"2025-04-11T21:37:34.665Z","avatar_url":"https://github.com/devkimchi.png","language":"JavaScript","readme":"# Blazor Hosting Model Sample\n\nThis provides sample code that shows various types of Blazor hosting models - Server, WASM (hosted/standalone) and Hybrid (MAUI/WinForm/WPF). They all share the same components with minimal code changes.\n\n## Prerequisites\n\n- [Visual Studio 2022](https://visualstudio.microsoft.com/vs/?WT.mc_id=dotnet-96001-juyoo)\n- [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=dotnet-96001-juyoo)\n- [SWA CLI](https://azure.github.io/static-web-apps-cli/)\n\n\u003e Due to the nature of the sample applications, it only targets Windows OS.\n\n## Getting Started\n\n1. Fork this repository.\n1. Clone the forked repository to your local machine.\n1. Open the solution, `BlazorHostingModels.sln`, with Visual Studio.\n1. Build the entire solution.\n\n   \u003e There might be a chance that solution build fails. Then, clean the solution first and rebuild the solution.\n\n1. Run the backend API in a separate terminal or console like [Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=dotnet-96001-juyoo), [Windows Terminal](https://learn.microsoft.com/windows/terminal/?WT.mc_id=dotnet-96001-juyoo) or [PowerShell](https://learn.microsoft.com/powershell/scripting/overview?WT.mc_id=dotnet-96001-juyoo).\n\n    ```powershell\n    cd src/BackendApi\n    func start\n    ```\n\n1. Run each project individually to see how it works.\n\n   \u003e For the hosted Blazor WASM app, run the following SWA CLI command within Visual Studio Code, Windows Terminal or PowerShell:\n   \u003e \n   \u003e ```powershell\n   \u003e swa start\n   \u003e ```\n\n## Something More?\n\n- [Migrating ASP.NET WebForm to Blazor](https://learn.microsoft.com/en-us/dotnet/architecture/blazor-for-web-forms-developers/migration?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hosting Model \u0026ndash; Server and WebAssembly (hosted/standalone)](https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid Overview](https://learn.microsoft.com/aspnet/core/blazor/hybrid/?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid MAUI](https://learn.microsoft.com/aspnet/core/blazor/hybrid/tutorials/maui?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid WinForm](https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/windows-forms?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid WPF](https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid routing and navigation](https://learn.microsoft.com/aspnet/core/blazor/hybrid/routing?WT.mc_id=dotnet-96001-juyoo)\n- [Blazor Hybrid reusing components](https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/reuse-razor-components?WT.mc_id=dotnet-96001-juyoo)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Fblazor-hosting-model-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkimchi%2Fblazor-hosting-model-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Fblazor-hosting-model-sample/lists"}