当前位置:网站首页>be based on. NETCORE development blog project starblog - (1) why do you need to write your own blog?
be based on. NETCORE development blog project starblog - (1) why do you need to write your own blog?
2022-04-23 03:06:00 【Dotnet cross platform】
Preface
OK, I'm here to make wheels, too
The blog system was used from the beginning WordPress, Later hexo、hugo Static blog generation github trusteeship , All the time
Tossing is to better solve the problem , Finally, I'm going to spend my time on one
This series of articles will document the development process of the blog ~ Will continue to update , Welcome to your attention ~
The back end is based on the latest .Net6 and Asp.Net Core frame , follow RESTFul The interface specification , Front-end based Vue+ElementUI Development , Can be used as .Net Core Introductory project learning ~
The development of blog project has been basically completed , The project code is completely open source , Click the original text to view the project address , Interested students are welcome star/fork~
Why develop your own blog
I can't find an online blog that satisfies me
Online blogging experience is not as good as using it locally typora Write
If you write a public official account, you will distract your attention to how to attract readers rather than articles.
Your own website has complete control , It will not be polluted by bad information added by the garbage platform
Integral design
Although blogs have little technical content , But I still want to say what I think
The reason why I developed my own blog is that I like to use it locally typora Blogging , but markdown As a plain text file , One short board is picture resources , Whether using a drawing bed or linking to a local , There are some problems when publishing .
The drawing bed may fail , I'm still used to putting resources locally and I can control them myself , But if you put it locally , To publish to blog Garden 、 Public platforms like this are inevitably uploaded by one official account. , so much trouble .
Static blog generator can put markdown convert to HTML And then on github perhaps gitee trusteeship , But the former can hardly be visited at home , The latter needs to pay for custom domain names , Plus the current strict control , Can't open gitee pages 了 …
Combined with the above , The core of my blog is to support local markdown And local pictures , I want to use the hundreds I have intact markdown Document to build a blog .
I don't want to be a static blog generator , The limit is too big , And many functions, such as comment interaction 、 Update push, etc. no direct support .
So the idea has been very clear , This blog needs to read local markdown file , Without modifying the original document , Import document content into database , At the same time, collect the resource files in the document ( picture ).
Then the blog front desk for better SEO effect , And it's very simple , Use back-end rendering technology , There is no need to separate the front and rear ends ;
Blog data is stored in the database , Of course, you need a management background , This background can be made into a single page application with separate front and back ends .
PS: Originally, I only considered writing and uploading locally , Online editing function is added later , It can meet the basic article editing function , The experience was ok
Functional requirements
So in conclusion , The blog developed by this project needs to have the following functions :
Local markdown Upload and import articles in batches , Analyze article classification according to directory structure ( Support multi-level classification and nesting ), analysis markdown And import them into the site directory
Batch upload of local photographic works , Read the picture EXIF Information and import
Configurable blog home page ( Show top and top articles 、 picture 、 classification )
Code snippet editing and sharing function
The background needs a complete article 、 classification 、 picture 、 Code snippet editing function
Blog front desk needs to publish articles quickly to WeChat official account. 、 Know about columns 、 Blog Garden 、 Functions of platforms such as nuggets
OK, That's about it ~ More functions may be added later ~
Technology selection
The back end was Django Is the best choice , Own management background , Develop this kind of CMS The system is the most suitable .
However, I recently C# It's easy to write , I've been learning AspNetCore This high-performance web frame , I think it's very useful , Wheels cannot be made with too simple tools , Otherwise, you will lose your challenge and learn too many new things … So it was determined to be AspNetCore 了
The front end selects the previously used vue, In addition to learning a little about the front-end technology stack not long ago React Not much update except , So make do with it first and realize it quickly , We'll consider using... Later blazor perhaps flutter And other fun new technologies ~
So it's clear
Back end :C# + AspNetCore
ORM:FreeSQL
Blog front desk :Bootstrap + Vue + editor.md + bootswatch
The management end :Vue + Vuex + VueRouter
The management end UI:SCSS + ElementUI
Blog screenshot
Put some screenshots
Blog home page
The article lists
Photography page ( Although I haven't put the photos on it yet )
Manage the background home page
Background article list
Article editing interface
Background picture list
The space relationship is to put these pictures ~
The blog will be deployed online soon , Go straight to demo link !
版权声明
本文为[Dotnet cross platform]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230301334113.html
边栏推荐
- Niuke white moon race 6 [solution]
- C read / write binary file
- ASP.NET 6 中间件系列 - 执行顺序
- TP5 where query one field is not equal to multiple values
- Dynamic sequence table + OJ
- MYSQL04_ Exercises corresponding to arithmetic, logic, bit, operator and operator
- 求二叉树的叶子结点个数
- REINFORCE
- Detailed explanation of distributed things
- BLDC double closed loop (speed PI + current PI) Simulink simulation model
猜你喜欢

腾讯视频涨价:一年多赚74亿!关注我领取腾讯VIP会员,周卡低至7元

Thoughts on the 2022 national network security competition of the national secondary vocational group (only one idea for myself) - network security competition questions (8)

AspNetCore配置多环境log4net配置文件

Q-Learning & Sarsa

PDH optical transceiver 4-way E1 + 4-way 100M Ethernet 4-way 2m optical transceiver FC single fiber 20km rack type

L2-006 樹的遍曆(中後序確定二叉樹&層序遍曆)

C#中切片语法糖的使用

由于3²+4²=5²,所以称‘3,4,5‘为勾股数,求n(包括n)以内所有勾股数数组。

全网讲的最细,软件测试度量,怎样优化软件测试成本提高效率---火爆

TP5 email (2020-05-27)
随机推荐
使用split来解决“最常见的单词”问题
全网讲的最细,软件测试度量,怎样优化软件测试成本提高效率---火爆
腾讯视频涨价:一年多赚74亿!关注我领取腾讯VIP会员,周卡低至7元
The difference between encodeuri and encodeuricomponent
Xamarin effect Chapter 21 expandable floating operation button in GIS
eventBus
宁德时代地位不保?
How to count the number of all files in a directory under win10 system
Restart redis
C# WPF UI框架MahApps切换主题
【新版发布】ComponentOne 新增 .NET 6 和 Blazor 平台控件支持
最通俗易懂的依赖注入之生命周期
利用栈的回溯来解决“文件的最长绝对路径”问题
Blazor University (11)组件 — 替换子组件的属性
7-11 重排链表 (25 分)
JS relearning
Introduction and use of openfeign component
Close the computer port
Plug in for vscode
MYSQL_ From mastery to abandonment