当前位置:网站首页>基于.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
边栏推荐
- Decision tree principle of machine learning
- JZ35 复杂链表的复制
- JZ76 删除链表中重复的结点
- Innovation and management based on Scrum
- Use of MySQL command line client and common commands
- Android high-level interview must ask: overall business and project architecture design and reconstruction
- Shell script learning -- practical case
- Thoughts on the 2022 national network security competition of the national secondary vocational group (only one idea for myself) - network security competition questions (7)
- SQL statement - DDL
- Cloud computing learning 1 - openstack cloud computing installation and deployment steps with pictures and texts (Xiandian 2.2)
猜你喜欢

【Hcip】OSPF常用的6种LSA详解

Sonic cloud real machine tutorial

基于Scrum进行创新和管理

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

First knowledge of C language ~ branch statements

tf. keras. layers. Conv? D function

How to build an integrated industrial Internet plus hazardous safety production management platform?

Plug in for vscode

Kubernetes - Introduction to actual combat
![Niuke white moon race 5 [problem solving mathematics field]](/img/be/ca059bd1c84eaaaefa3266f9119a6b.png)
Niuke white moon race 5 [problem solving mathematics field]
随机推荐
国产轻量级看板式Scrum敏捷项目管理工具
Android high-level interview must ask: overall business and project architecture design and reconstruction
Cherno_ Game engine series tutorial (5): 101~
tf. keras. layers. Embedding function
REINFORCE
BLDC double closed loop (speed PI + current PI) Simulink simulation model
Kubernetes - Introduction to actual combat
Codeforces Round #784 (Div. 4) (A - H)题解
JS relearning
The interface request takes too long. Jstack observes the lock holding
《信息系统项目管理师总结》第四章 项目成本管理
JZ22 鏈錶中倒數最後k個結點
Jz76 delete duplicate nodes in linked list
[if you want to do a good job, you must first use its tools] Guide for downloading and using paper editing and document management (endnote, latex, jabref, overflow) resources
leangoo脑图-共享式多人协作思维导图工具分享
Chapter VI project information management system summary
ROP Emporium x86_64 7~8题
Practical combat of industrial defect detection project (II) -- steel surface defect detection based on deep learning framework yolov5
Processes and threads
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment