Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thbst16/dotnet-blazor-base
Based MudBlazor server-rendered solution with artifacts to build and deploy as docker container to Azure Container Apps.
https://github.com/thbst16/dotnet-blazor-base
azure azure-container-apps azure-devops blazor docker dotnetcore mudblazor
Last synced: 3 months ago
JSON representation
Based MudBlazor server-rendered solution with artifacts to build and deploy as docker container to Azure Container Apps.
- Host: GitHub
- URL: https://github.com/thbst16/dotnet-blazor-base
- Owner: thbst16
- License: apache-2.0
- Created: 2024-09-12T00:33:32.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T15:17:33.000Z (5 months ago)
- Last Synced: 2024-10-12T05:41:39.380Z (4 months ago)
- Topics: azure, azure-container-apps, azure-devops, blazor, docker, dotnetcore, mudblazor
- Language: HTML
- Homepage: https://dotnet-blazor-base.wittycoast-850643a6.eastus.azurecontainerapps.io/
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-blazor-base
[![Build Status](https://beckshome.visualstudio.com/dotnet-blazor-base/_apis/build/status/thbst16.dotnet-blazor-base?branchName=main)](https://beckshome.visualstudio.com/dotnet-blazor-base/_build/latest?definitionId=12&branchName=main)
![Docker Image Version (latest by date)](https://img.shields.io/docker/v/thbst16/dotnet-blazor-base?logo=docker)This is the base MudBlazor server-rendered project from which all other beckshome blazor projects are derived. This project includes a basic MudBlazor application generated using MudBlazor.Templates. The application is dockerized and deployed onto Azure Container Apps using Azure DevOps.
# Notional Architecture
The key focus of this project, beyond the standard MudBlazor application, is the dockerizing process and deployment of the dockerized application to Azure Container Apps using Azure DevOps. The figure below represents these critical steps, highlighting the artifacts in this project responsible for each of these key activities.![Blazor Deployment](https://s3.amazonaws.com/s3.beckshome.com/20240913-blazor-deployment.jpeg)
# Running the Application
Ther are several ways to run the application. It is available [directly online](https://dotnet-blazor-base.wittycoast-850643a6.eastus.azurecontainerapps.io/). Alternately, you can build and run the docker instance locally or run the docker instance from the DockerHub repo. To build and run the Docker instance locally:```console
docker build -t blazor-base -f Dockerfile .
docker run -d -p 5001:80 blazor-base
```To run directly from DockerHub:
```console
docker run -d -p 5001:80 thbst16/blazor-base
```Either way, to kill the container when you're done:
```console
docker ps
docker kill CONTAINER_NAME
```# Motivation and Credits
* [.NET on Azure Container Apps Overview](https://learn.microsoft.com/en-us/azure/container-apps/dotnet-overview)
* [Continuous Deployment to Azure Container Apps with Azure DevOps](https://rios.engineer/continuous-deployment-to-azure-container-apps-with-azure-devops/)
* [Dockerizing an ASP.NET Core Web API](https://levelup.gitconnected.com/dockerizing-an-asp-net-core-web-api-a-step-by-step-guide-9af98fadd189)
* [MudBlazor Installation and Templates](https://mudblazor.com/getting-started/installation#using-templates)