
Hello everyone, I am a wolf at the end of the desert.
我的网站Dotnet9 (https://dotnet9.com) 进行了新一轮的重构:前台由Vue 3换回ASP.NET Core Razor Pages,风格以简约为主,主打内容为王,放弃花哨,网友称风格类似早期博客园,站长其实买的杨青青个人博客(https://www.yangqq.com/)的静态模板;后端采用MASA Framework搭建,框架地址是 https://www.masastack.com/framework,后端依然以DDD设计为开发指导,这次加入了CQRS。开发总体规划是:后端框架采用MASA Framework应该是不变了,并且前后台现在全面拥抱了 .NET 8。
By the way, the open source address of the website is: https://www.example.com. github.com/dotnet9/dotnet9
Why is it rebuilt again?
With the continuous development of technology, website reconstruction has become an inevitable trend. In order to better meet the needs of individuals for learning and improve the performance and user experience of the website, the Dotnet9 website has undergone a new round of reconstruction. This reconstruction mainly includes two aspects: front desk and back office.
Front-end reconstruction
Technology Stack: ASP.NET Core 8.0 Razor Pages
在前台方面,Dotnet9网站将原来的 Vue 3 换回了 Razor Pages 。这是因为Vue 3虽然有很多优点,但是在性能和SEO方面还存在一些问题。而Razor Pages则更加适合于构建前台网站(服务端渲染),具有更好的性能和SEO优化效果。
At the same time, the Dotnet9 website has also made some adjustments in style. The style of the website is mainly simple, giving up too much fancy effects and paying more attention to the presentation of content. This style is similar to the early blog parks, allowing users to focus more on reading and learning.
Background reconstruction
Technology Stack: ASP.NET Core 8.0 Web API ( MASA Framework + EF Core 8.0(PostgreSQL), DDD + CQRS)
在后台后端方面,Dotnet9网站采用了 MASA Framework 作为开发框架。MASA Framework 是.NET下一代微服务开发框架, 助力开发者和企业开启全新的现代化应用开发交付体验。
In terms of development and design, the Dotnet9 website still adopts DDD (Domain-Driven Design) thinking and practice. This design philosophy can help developers better understand business requirements and separate business logic and technical implementation, thereby improving the maintainability and extensibility of code.
此外,Dotnet9网站还加入了CQRS(命令查询职责分离)的设计模式,由 MASA Framework 提供技术支持。CQRS是一种与领域驱动设计(DDD)和事件溯源相关的架构模式,它将事件(Event)划分为 命令端(Command)和 查询端(Query),可以提高系统的性能和可扩展性。在Dotnet9网站中,博客文章的查询就使用了查询(Query),文章阅读统计(开发中)使用了命令(Command)。
summary
The reconstruction of the Dotnet9 website not only improves the performance and user experience of the website, but also adopts the latest technology and design ideas to make the website more maintainable and extensible. In the future development, the Dotnet9 website will continue to adhere to this concept, continuously optimize and improve, and provide users with better services. Of course, it will mainly focus on personal learning and continuous evolution.
achievement display
Home page:

Article album:

Article details:

source code
This time, the historical branch was also cleaned up, leaving only the develop and main branches.
Warehouse: github.com/dotnet9/dotnet9
The solution structure is as follows:

Front desk main project: Dotnet9.RazorPages

Back-end main project: Dotnet9.Service

- Dotnet9.Commons: Tool Library
- Dotnet9.Contracts: Temporarily put Dto class
- Dotnet9.RazorPages: Main project at the front desk, gradually improving
- Dotnet9.Service: The main back-end project will temporarily put various hierarchical files into one project, and then divide them into libraries if necessary
- Dotnet9.Admin: The backend front-end is tentative
When the website development is complete, write a series of tutorials on the front and back development of the Dotnet9 website to share, either this year or next year...
That's all for this article, for traveling...
technical exchanges
- Weixin Official Accounts are as follows: Dotnet9
- WeChat technical exchange group: Add WeChat (codewf) comment "Join the group"
- QQ technical exchange group: 771992300.
