This is a project that has just been refactored recently , I can't wait to share with you , In order to keep up with the technological upgrading, the original is based on MVC Razor Page Open source project RazorPageCleanArchitecture refactoring , Front end with Blazor-Server mode Instead of , Consistent back-end architecture and functions . The details can be found at GitHub understand .
Source Code Repo
Blazor Dashboard Application: https://github.com/neozhu/CleanArchitectureWithBlazorServer
Razor Page Application:https://github.com/neozhu/RazorPageCleanArchitecture
Code Generator Tools:https://github.com/neozhu/CleanArchitectureCodeGenerator
Live Demo
Live Demo: https://mudblazor-s.dotnet6.cn/
Video: https://www.youtube.com/watch?v=GyZJl_dG-Pg
Screenshots
Why use Blazor Server mode Instead of separating the front and rear ends Webassembly mode Development
Because of the simple , Adopt the architecture of separation of front and back end , Need to be in Server End plus WebApiController,Webassembly Also need to generate Http Client, Here I think there is a lot of repetitive work , For ordinary small projects, I don't think it's necessary to spend time here , The separation of front end and back end will make the architecture and code more complex . Of course Blazor Server mode There are also many advantages, such as faster performance loading than Webassembly Be quick , Specific comparisons can be found online .
development environment
- DotNet 6
- Microsoft Visual Studio 2022 (64-bit)
- Support Docker
Rely on third-party libraries ( a key )
- Entity Framework Core 6
- FluentValidation(https://github.com/FluentValidation/FluentValidation)
- MediatR(https://github.com/jbogard/MediatR)
- MudBlazor(https://mudblazor.com/)
technology
- Blazor Server
- MudBlazor UI Component
- MediatR
- Fluent Validation
The main function
- Code generation tool : https://github.com/neozhu/CleanArchitectureCodeGenerator
- Theme management : Color theme configuration
- Multilingual : Support multi language switching
- User management : register , Role authorization
- Role management : Role authorization management
- Menu navigation management : comming soon
- Service monitoring :comming soon
- Timing task :comming soon
- Dictionary management :comming soon
- Notice management :comming soon
- The operation log :comming soon
- system log :comming soon
Many of the above functions have not been migrated , It will be updated later .
How to
Reference resources application/features/Products Add, delete, modify and check the code , It also includes import and export functions and image upload functions
Development experience
In one sentence Blazor Development Web Applications don't want to go back to using Jquery, DOM Object operation , Only c# Can be developed with VUE or Angular,React Same SPA application , It's really a cool experience .
Last
If you are interested in this project , Can I give you a star .