GithubHelp home page GithubHelp logo

blueskycaps / coolnetblog Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 3.0 1.99 MB

使用c#/asp.net core 6的轻量级、简洁、跨平台的博客框架|博客系统。A lightweight, concise, and fast blogging framework using c# asp.net core 6.

License: GNU General Public License v3.0

C# 14.90% HTML 12.11% CSS 47.51% JavaScript 25.48%
blog blog-engine asp-net-core bootstrap admin-panel blog-system article

coolnetblog's Introduction

CoolNetBlog

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

ASP.NET Core 6 Bootstrap Uikit jQuery

目前功能:

  1. 支持移动端和pc端样式。可以设置菜单,关键词搜索,自定义站点尾巴和标题。
  2. 文章管理:有标准文章、草稿文章、隐私文章(密码加锁)和特殊文章(如"友链"等),文章文字样式(包含图片插入)、设置标签。
  3. 可以设置文章的评论类型:1公开2审核3不允许评论
  4. 可以审核留言,通过与不通过,也可以直接回复留言者,并且选择抄送邮件给留言者。
  5. 上传图片和文件:插入图片到文章;扩展自定义文件链接和html页面。
  6. 配置小组件:心愿图片、自定义链接列表、“闲言碎语”。
  7. 开启或取消文章点赞功能。
  8. 允许限制访客单日内的留言次数
  9. 集成Cravatar头像服务,允许在评论区显示或关闭留言者的头像 ......

运行|开发项目:

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

本项目默认使用mysql8.0进行开发完成,但采用Sqlsugar ORM框架,只需更改configs.json的连接字符串以使用sqlServer等,但非mysql数据库需要自行验证开发。

  1. 选择某个Release版本,下载代码,如v2.0.1。
  2. 在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": {}
}

然后可以使用git将configs.json设为忽略项

  1. 添加CoolNetBlog数据库(版本v2.0.1,其余类似):

使用navicat等数据库管理工具连接mysql服务器,运行sql语句,sql文件是本仓库下的"v201_dump_CoolNetBlog.sql"。

或者在终端依次执行命令:

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

这样便添加CoolNetBlog数据库完毕。

  1. visual studio启动项目。若数据库地址是远程服务器,确保地址和密码输入正确且服务器开启3306端口、mysql版本远程连接方式配置正确。

  2. 后台页是 站点/admin/login, 默认账户是bluesky默认密码12345678

部署至服务器:

Ubuntu & Nginx

CentOS & Apache

Windows & IIS

参见微软msdn文档,有详细介绍。 Host and deploy ASP.NET Core

coolnetblog's People

Contributors

blueskycaps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.