cheriansk / blazor_maui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goals

The goal of this repository is to provide feature-rich but less boiler plate starting point for any .Net project to kick start their Blazor MAUI application.

Features

  • Built on .NET 6.0
  • Code sepereation for Web and MAUI

Projects

  • Web

    • All Web application related files are added in this project. Built on Blazor Server architecture
    • When Web application is started, the flow goes as below
      • Program.cs → BlazorLibrary/Pages/_Host.cshtml → BlazorLibrary/Pages/_Layout.cshtml (this file refers the css in Maui/wwwroot and also Blazorlibrary/wwwroot)
      • BlazorLibrary/App.Razor -> This loads BlazorLibrary.Shared.MainLayout
  • MAUI

    • All MAUI application related files are added in this project
    • When MAUI application is started, the flow goes as below
      • MauiProgram.cs → MainPage.xaml.cs → wwwroot/index.html (this file refers the css in Maui/wwwroot/css and also Blazorlibrary/wwwroot)
      • Main.razor -> This loads BlazorLibrary.Shared.MainLayout
  • BlazorLibrary

    • SitePages - All custom Razor Pages must be added in this folder
    • wwwroot - All custom files here that are common for web and maui; make sure to update the references in _Layout.cshtml and index.html
  • ClassLibrary

    • Controller - Controllers and logic classes must goto this folder
    • Model - All Model classes must goto this folder
    • Service - All external interacting service classes must goto this folder

License

This project is licensed with the MIT license.

About


Languages

Language:HTML 34.7%Language:CSS 31.0%Language:C# 30.9%Language:Dockerfile 2.4%Language:JavaScript 0.9%