Coder Social home page Coder Social logo

mr-qinjiasheng / blog-master Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 21.28 MB

一个基于Beego的,能快速创建个人博客,cms 的系统

License: Apache License 2.0

Dockerfile 0.01% Go 13.69% VBA 19.10% PLSQL 0.04% Shell 0.01% CSS 9.65% JavaScript 32.72% SCSS 3.49% HTML 21.30%

blog-master's Introduction

Go Blog

一个基于Beego的,能快速创建个人博客,cms 的系统

包含功能

image

前台演示站点(社区) https://nihongdengxia.com/

系统功能

系统功能

更新日志,看系统功能图 ☑ 为已经完成的

时间 功能
2020年1月23日 新增文章顶置功能
2020年2月2日 新增自定义导航功能
2020年2月4日 新增站点公告功能
2020年2月6日 新增友情链接模块
2020年2月6日 新增点赞功能
2020年2月20日 新增站点用户管理模块,可新增修改后台用户以及密码
2020年3月5日 JS渲染页面改为后端渲染,优化页面SEO
2020年3月6日 添加标签云
2020年3月7日 XSS攻击过滤
2020年3月12日 添加点赞限制
2020年3月23日 添加硬盘使用监控
2020年3月25日 新增图片放大预览
2020年9月7日 新增附件管理功能
2020年10月1日 新增文章抓取功能
2020年10月30日 leechan模板首页新增导航
2020年10月30日 新增站点地图,自动更新站点地图

更新 v1.1.0

接下来的v1.1.0版本将支持绑定公众号

新功能:

  1. 素材管理
  2. 自定义菜单
  3. 消息群发
  4. 关键词回复

Install

方式1 docker 安装(推荐)

  1. 先安装docker以及docker-compose
  2. 把根目录下的docker-compose.yml赋值到你需要运行的Go Blog项目的目录下,执行docker-compose up -d.(会报找不到数据库的错误,忽略,在步骤3导入数据后就正常了)
  3. 登录docker启动的mysql,新建数据库go-blog,导入go-blog/database/blog-mysql.sql数据。
  4. 访问urlhttp://127.0.0.0:8080,后台urlhttp://127.0.0.0:8080/admin,默认账户:user,密码:123456

方式二 源码安装

  1. 把Go Blog项目拉到本地
https://github.com/1920853199/go-blog.git
  1. 新建数据库,导入数据库文件,数据库文件/database/blog.sql

  2. 修改项目配置信息

#conf/app.conf

appname = go-blog
httpport = 8088
runmode = dev
EnableAdmin = false
sessionon = true
url = 127.0.0.1:8088
view = default

limit = 10
title = Go Blog
autograph = 如今的我,谈不上幸福,也谈不上不幸。

[db]
dbType = mysql
dbUser = root
dbPass = root
dbHost = 127.0.0.1
dbPort = 3306
dbName = blog

[redis]
rHost = 127.0.0.1
rPort = 6379

[wechat]
AppID = xxxxxxx
AppSecret = xxxxxxx
Token = xxxxxxx
EncodingAESKey = xxxxxxx


  1. 在bo-blog 根目录下执行bee run ,访问 http://127.0.0.1:8888 即可

  2. 守护进程模式运行 可以了解PM2的相关信息,配置可查看start.sh 文件

  3. nginx代理示例

server {
        listen 80;
        server_name go-blog.cn;
        root    /home/data/go-blog;

        location ~ \.(txt|xml)$ {
                root /home/data/go-blog;
        }

        location / {
            proxy_pass http://127.0.0.1:8889;
            #proxy_redirect off;
            proxy_http_version    1.1;
            proxy_cache_bypass    $http_upgrade;
            proxy_set_header Upgrade            $http_upgrade;
            proxy_set_header Connection         "upgrade";
            proxy_set_header Host               $host;
            proxy_set_header X-Real-IP          $remote_addr;
            proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto  $scheme;
            proxy_set_header X-Forwarded-Host   $host;
            proxy_set_header X-Forwarded-Port   $server_port;
        }

        access_log    /home/wwwlogs/go-blog.access.log;
}

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.