当前位置:网站首页>基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目
基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目
2022-04-23 03:02:00 【dotNET跨平台】
系列文章
基于.NetCore开发博客项目 StarBlog - (2) 环境准备和创建项目
...
基于.NetCore开发博客项目 StarBlog - 接口返回值包装
基于.NetCore开发博客项目 StarBlog - 上传图片功能
基于.NetCore开发博客项目 StarBlog - 身份认证功能
基于.NetCore开发博客项目 StarBlog - 前端相关
基于.NetCore开发博客项目 StarBlog - 前端开发 (1) 准备篇
基于.NetCore开发博客项目 StarBlog - 前端开发 (2) 页面路由
基于.NetCore开发博客项目 StarBlog - 前端开发 (3) SASS与SCSS
基于.NetCore开发博客项目 StarBlog - 前端开发 (4) FontAwesome图标
基于.NetCore开发博客项目 StarBlog - 前端开发 (5) Axios网络请求封装
基于.NetCore开发博客项目 StarBlog - 前端开发 (6) 登录页面
基于.NetCore开发博客项目 StarBlog - 前端开发 (7) 主页面
基于.NetCore开发博客项目 StarBlog - 前端开发 (8) Vuex与状态管理
基于.NetCore开发博客项目 StarBlog - 前端开发之文件上传
基于.NetCore开发博客项目 StarBlog - 前端开发之瀑布流图片列表
基于.NetCore开发博客项目 StarBlog - 前端开发之导航守卫
...
前言
之前的文章(基于.NetCore开发博客项目 StarBlog - (1) 为什么需要自己写一个博客?)在博客园和公众号发表之后收到了很多大佬的关注,发布在GitHub上的代码也收获了几十个star,这让我备受鼓舞,更有动力把这个项目完善好,把这系列的博文写好了~
事实上本系列的博客已经完成了60%的文章,不过大部分是集中在前端开发(管理端)上面的,关于后台开发的部分因为我前期代码写得太快,没有去记录,所以现在想先把后台开发部分写好,再一篇篇发出来。
本系列博客默认读者具备基本的Asp.Net Core
框架(MVC和WebApi都有涉及)使用知识,关于Asp.Net Core
框架的入门可以参考我之前发的博客:
以及公众号的「AspNetCore学习笔记」、「AspNetCore开发笔记」系列。
本文介绍开发StarBlog
博客前的环境准备已经项目创建流程,虽然没啥技术含量但属于不得不写的一篇,读者可以直接粗略看完跳过~
环境准备
本项目的后端基于.Net6
版本,如果还没安装的话可以在微软官网下载,地址:https://dotnet.microsoft.com/zh-cn/download
然后IDE的话我平时习惯Jetbrains家的Rider,当然可能大部分.Net开发者都是用VS的(不过建议大家有空可以试试Rider,真的挺好用~),这俩开发起来效率都很高。次一等的选择是VS Code,用作简单的demo项目编码是可以的,不过比较大的项目还是用Rider或者VS好。
开始
使用IDE或者命令行创建一个空的解决方案
我比较习惯用rider
IDE的创建项目很容易,不多说了,这里说下用命令行的方式
首先创建一个目录
mkdir StarBlog
创建解决方案
cd StarBlog
dotnet new sln
可以看到在StarBlog
目录下新建了文件StarBlog.sln
接下来继续创建几个项目
# 一些额外的工具代码
dotnet new classlib -o StarBlog.Contrib
# 数据访问相关的代码、数据库模型等
dotnet new classlib -o StarBlog.Data
# 博客迁移(Markdown文件夹导入博客网站)工具代码
dotnet new console -o StarBlog.Migrate
# 博客网站主体项目
dotnet new web -o StarBlog.Web
关于dotnet new
命令的更多用法可以参考官方文档:https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-new
创建完成之后目录结构如下
StarBlog
├── StarBlog.Contrib
├── StarBlog.Data
├── StarBlog.Migrate
├── StarBlog.Web
└── StarBlog.sln
ok
OK,本文的内容就只有这么多了,接下来的文章就要开始写代码了,欢迎关注~
同时所以项目代码已经上传GitHub,欢迎各位大佬Star/Fork!
博客后端+前台项目地址:https://github.com/Deali-Axy/StarBlog
管理后台前端项目地址:https://github.com/Deali-Axy/StarBlog-Admin
版权声明
本文为[dotNET跨平台]所创,转载请带上原文链接,感谢
https://blog.csdn.net/sd7o95o/article/details/124357627
边栏推荐
- Introduction to ACM [TSP problem]
- Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
- Codeforces round 784 (Div. 4) (a - H)
- Windows MySQL 8 zip installation
- VirtualBox virtual machine (Oracle VM)
- Navicat premium import SQL file
- Linux redis - redis database caching service
- Linux Redis ——Redis HA Sentinel 集群搭建详解 & Redis主从部署
- Encapsulate components such as pull-down menu based on ele
- L2-006 树的遍历(中后序确定二叉树&层序遍历)
猜你喜欢
HLS / chisel practice CORDIC high performance computing complex square root
Opencv combines multiple pictures into video
Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet
Android 高阶面试必问:全局业务和项目的架构设计与重构
Niuke white moon race 6 [solution]
Er and eer models
BLDC double closed loop (speed PI + current PI) Simulink simulation model
Huawei machine test question -- deformation of hj53 Yang Hui triangle
First knowledge of C language ~ branch statements
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
随机推荐
Codeforces Round #784 (Div. 4) (A - H)题解
In redis cluster, the master node fails, and the IP changes after the master-slave switch. The client does not need to deal with it
Linux Redis ——Redis HA Sentinel 集群搭建详解 & Redis主从部署
Shell script learning notes - regular expressions
tf. keras. layers. Inputlayer function
【Hcip】OSPF常用的6种LSA详解
tf. keras. layers. Density function
JSON data text
REINFORCE
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
《信息系统项目管理师总结》第四章 项目成本管理
How to count the number of all files in a directory under win10 system
树莓派开发笔记(十二):入手研华ADVANTECH工控树莓派UNO-220套件(一):介绍和运行系统
Microservices (distributed architecture)
Introduction to ACM [inclusion exclusion theorem]
Shell script learning notes -- shell operation on files sed
@Usage and difference between mapper and @ repository
Onenet connection process
How to write the expected salary on your resume to double your salary during the interview?
Opencv reads webcam video and saves it locally