Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 3.2 KB

File metadata and controls

66 lines (52 loc) · 3.2 KB

CoolNetBlog

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

ASP.NET Core 6 Bootstrap Uikit jQuery

Basic features:

  1. Support mobile and pc style. Menus can be set, keyword search, custom site tail and title can be customized.
  2. Article management: There are standard articles, draft articles, privacy articles (password lock) and special articles.
  3. admin can set the comment type of the article: 1 Public 2 Moderation 3 Do not allow comments
  4. The background can review the message, can directly reply to the messager, and choose to send an email to the messager.
  5. Upload images and files: Insert images into articles; extend custom file links and html pages.
  6. Configure widgets: "Personality Picture", Custom Link List, "Small Text".
  7. Turn on or off article likes.
  8. Limit the number of messages a visitor can leave in a single day
  9. Integrated Cravatar avatar service, allowing the avatar of the commenter to be displayed or turned off in the comment area ......

Run|development project :

IDE:.net core 6 sdk and asp.net core 6,visual studio 2022

By default, this project uses mysql8.0 for development, and sqlserver requires you to verify the development by yourself.

  1. Select a Release version and download the code, such as v2.0.1
  2. Create the file 'configs.json' in the 'CoolNetBlog' directory and copy the json content:
{
  "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.

  1. Add coolNetBlog database (version v2.0.1, similar to the rest):

Use navicat and other database management tools to connect to the mysql server, run sql statements, and the sql file is the "v201_dump_CoolNetBlog.sql" under directory.

Another way is that the commands can be executed sequentially in the terminal:

mysql -u{name} -p
CREATE DATABASE if not exists CoolNetBlog CHARACTER SET utf8 COLLATE utf8_general_ci;
exit;
mysql -u{name} -p{password} CoolNetBlog < v201_dump_CoolNetBlog.sql

This completes the addition of the CoolNetBlog database.

  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.

  2. Background admin page is {site}/admin/login, default username is bluesky and password is 12345678

Deploy to the server :

Ubuntu & Nginx

CentOS & Apache

Windows & IIS

See the Microsoft MSDN documentation for details. Host and deploy ASP.NET Core