# Beau **Repository Path**: bemy/beau ## Basic Information - **Project Name**: Beau - **Description**: Beau是一款基于java开发的轻量级博客、信息文章类建站平台,简洁美观快捷体验 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.gz640.cn - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 28 - **Created**: 2021-12-31 - **Last Updated**: 2022-01-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 Beau是一款基于java开发的轻量级博客、个人建站平台 > 目前Beau的所有功能均为个人开发,欢迎各位共同交流,同时如若本项目对您有所帮助,请为它点个star * 演示站点: [https://www.gz640.cn](https://www.gz640.cn) ## 使用技术 * 基于SpringBoot2.2.5,Mybatis,Mybatis-plus * 使用beetl模板引擎 * Vue+antd+axios的前后分离的后台管理 * 支持腾讯OSS、七牛云OSS文件存储 * 支持钉钉、github、gitee的登录 * Less样式 ## 功能简介 * 设计简洁,界面美观 * 支持[Markdown](https://www.markdownguide.org/)、富文本两种格式编辑文章 * 使用css变量定义主题,简单快捷自定义出各种样式,举例见 主题定义 * 支持友情链接 * 支持附件管理,附件在线预览 * 项目结构清晰,安装部署简单 * 支持首页静态化,首屏秒开 ## 系统截图 主页 ![](https://gitee.com/lsl52640/files/raw/master/%E7%BD%91%E7%AB%99%E4%B8%BB%E9%A1%B5.jpg) 管理后台主页 ![](https://gitee.com/lsl52640/files/raw/master/%E5%B7%A5%E4%BD%9C%E5%8F%B0.jpg) 文章管理 ![](https://gitee.com/lsl52640/files/raw/master/%E6%96%87%E7%AB%A0%E7%AE%A1%E7%90%86.jpg) 文章富文本编辑 ![](https://gitee.com/lsl52640/files/raw/master/%E6%96%87%E7%AB%A0%E7%BC%96%E8%BE%91-HTML.jpg) 文章Markddown编辑 ![](https://gitee.com/lsl52640/files/raw/master/%E6%96%87%E7%AB%A0%E7%BC%96%E8%BE%91-markdown.jpg) ## 安装教程 1. 执行数据库脚本ddl.sql 2. 源码Docker安装(需要jdk8、maven编译环境) ``` git clone https://gitee.com/ringcode/beau.git ``` 修改配置文件 application-prod.yaml ```yaml spring: datasource: url: jdbc:mysql://localhost:3306/beau-pro?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=CST&allowPublicKeyRetrieval=true username: root password: root oss: tencent: #腾讯OSS文件存储,详情见 https://www.gz640.cn enable: true #是否启用 bucket: #BUCKET secret-key: # Secret Key access-key: #Access Key region-name: #Region Name ``` ``` cd beau mvn clean package docker build -t beau:lastest . ``` ``` docker run -d -e ENV=prod beau:lastest ``` 3. 使用安装包(推荐docker安装) 下载安装包(以-install.zip结尾的文件)并解压,安装包[下载地址](https://gitee.com/ringcode/beau/releases) 修改解压包中的配置文件 application-online.yaml ```yaml spring: datasource: url: jdbc:mysql://localhost:3306/beau-pro?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=CST&allowPublicKeyRetrieval=true username: root password: root oss: tencent: #腾讯OSS文件存储,腾讯OSS配置查询见 https://www.gz640.cn enable: true #是否启用 bucket: #BUCKET secret-key: # Secret Key access-key: #Access Key region-name: #Region Name ``` 执行docker命令 ``` docker build -t beau:lastest . docker run -d -p7000:7000 -e ENV=online beau:lastest ``` 可访问 http://localhost:7000 查看 4. 管理后台UI 参考 [文档](https://gitee.com/ringcode/beau-ui) ## 主题定义 基于文件src/main/resources/static/theme/theme.css ```css :root { --main-color: #1abc9c;/* 主色调 */ --primay-color: #1abcb3;/* 浅主色调 */ --font-color: #333;/* 字体主色 */ --font-color-desc: #62625d;/* 字体浅色 */ --font-color-gray: #999;/* 字体灰色 */ } ``` ## 系统目录 ![](https://gitee.com/lsl52640/files/raw/master/%E9%A1%B9%E7%9B%AE%E7%9B%AE%E5%BD%95.jpg) ## 下一版升级规划 1. 用户注册 2. 文章评论功能 3. 登录日志 学习交流群(企业微信沟通更方便) ![](https://gitee.com/lsl52640/files/raw/master/contact_me_qr.png)