Skip to content

Latest commit

 

History

History
79 lines (66 loc) · 4.88 KB

README-IMGS.md

File metadata and controls

79 lines (66 loc) · 4.88 KB

CoolNetBlog

A lightweight, concise, and fast blogging framework using asp.net core 6.

使用 asp.net core 6 的轻量级、简洁、快速的博客框架。

使用介绍视频:

点击:观看基本使用介绍视频

Screenshot show 截图展示:

PC首页 PC文章页 移动端首页和文章页 后台面版

Basic features 基本功能(v1.9.9,当前版本):

Powerd By asp.net core 6 mvc,default use mysql8 Support mobile and pc style, you can set menus, keyword search, customize site tail and title. Article management: Drafts, menu categorization, article locking, article text style, labeling and searching, article images (large, original, thumbnail). Upload images and files: Insert images into articles; extend custom file links and html pages. Configuration widgets: external links sidebar, wish-possible images, custom link lists. Turn on or disable article likes.

  1. 支持移动端和pc端样式,可以设置菜单,关键词搜索,自定义站点尾巴和标题。
  2. 文章管理:草稿、菜单归类、文章加锁、文章文字样式、设置标签且搜索、文章图片(大图、原始图、缩略图)。
  3. 上传图片和文件:插入图片到文章;扩展自定义文件链接和html页面。
  4. 配置小组件:外部链接侧边栏、心愿图片、自定义链接列表。
  5. 开启或取消文章点赞功能。

Subsequent features 后续功能(v2.0.1,下一版本)

Post comment messages, which can be turned on and off according to the article. Article editing is optimized, and text edits can be previewed. ......

  • 扩充帖子评论留言功能,随时启用。
  • 文章编辑优化,文本编辑可预览(不引用第三方富文本插件,暂无此想法)。
  • ........

Run|development project 运行|开发项目:

环境配置:.net core 6 sdk and asp.net core 6,visual studio 2022

By default, this project uses mysql for development, and sqlserver requires you to verify the development by yourself. 本项目默认使用mysql进行开发完成,sqlserver等需自行验证开发

  1. Select a Release version(Lasted) of the repository and download the repository code, such as v1.9.9 or v9.9.9|选择仓库的某个Release版本(Lasted),下载仓库代码,如v1.9.9 or v9.9.9。
  2. Create the file 'configs.json' in the 'CoolNetBlog' directory and copy the json content|在CoolNetBlog\目录下创建文件configs.json,并复制一下json内容:
{
  "DbConnStr": {
    //here your database connection string
    "Default": "server=your_ip;uid=your_username;pwd=your_mysql_password;database=CoolNetBlog",
    "MySql": "server=your_ip;uid=your_username;pwd=your_mysql_password;database=CoolNetBlog",
    "SqlServer": ""
  },
  "Redis": {}
}

You can then use git to make configs.json an ignored file.|然后可以使用git将configs.json设为忽略项

  1. Add coolNetBlog database (version v1.9.9, similar to the rest)|添加CoolNetBlog数据库(版本v1.9.9,其余类似):

Use navicat and other database management tools to connect to the mysql server, run sql statements, and the sql file is the "v199_dump_CoolNetBlog.sql" under this repository.|使用navicat等数据库管理工具连接mysql服务器,运行sql语句,sql文件是本仓库下的"v199_dump_CoolNetBlog.sql"。

Another way is that the commands can be executed sequentially in the terminal|或者在终端依次执行命令:

mysql -u用户名 -p密码
CREATE DATABASE if not exists CoolNetBlog CHARACTER SET utf8 COLLATE utf8_general_ci;
exit;
mysql -u用户名 -p密码 CoolNetBlog < v199_dump_CoolNetBlog.sql

This completes the addition of the CoolNetBlog database.| 这样便添加CoolNetBlog数据库完毕。

  1. Visual studio starts the project. If the database address is a remote server, make sure that the address and password are entered correctly, that the server has port 3306 open, and that the mysql version of the remote connection method is configured correctly.|visual studio启动项目。若数据库地址是远程服务器,确保地址和密码输入正确且服务器开启3306端口、mysql版本远程连接方式配置正确。

  2. Background admin page(后台页) is /admin/login, default username(默认账户) is bluesky and password(密码) is 12345678

Deploy to the server 部署至服务器:

Ubuntu & Nginx

CentOS & Apache

Windows & IIS

参见微软msdn文档,有详细介绍。 See the Microsoft MSDN documentation for details. Host and deploy ASP.NET Core