# xiaohai-blog **Repository Path**: wch2019/xiaohai-blog ## Basic Information - **Project Name**: xiaohai-blog - **Description**: DotCode(点码),是一个前后分离的博客系统。前端使用 Vue + ElementUi 和Vue 3 + TypeScript + Vite + ElementPlus。后端使用 SpringBoot + Mybatis-plus进行开发,使用Sa-Token作为登录验证和权限校验。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: dev - **Homepage**: https://www.dotcode.top - **GVP Project**: No ## Statistics - **Stars**: 26 - **Forks**: 5 - **Created**: 2023-01-06 - **Last Updated**: 2025-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## DotCode(点码)
## 前言
本着不想造轮子的理念用过**halo**和**hexo**,见过 *
*[蘑菇博客](https://gitee.com/moxi159753/mogu_blog_v2)**和**[拾壹博客](https://gitee.com/quequnlong/shiyi-blog)**
。别人的用着终究不是很顺手。最终觉得还是自己写个用也是不错的,就当做练手,也是为了折腾。在2023年初开始本项目的开发,开始打算简单写写能用就行,不过最后感觉既然都写了,那就多写点东西吧。目的打造一个
**笔记+博客+本地网盘**的项目,现在还没完全构思好,边写边构思。(
本项目还未完成,持续更新中,如果有想法的小伙伴也可以分享自己的看法)
## 项目介绍
DotCode(点码),是一个前后分离的博客系统。
前端使用 **Vue** + **ElementUi** 和**Vue 3 + TypeScript + Vite + ElementPlus**
后端使用 **SpringBoot** + **Mybatis-plus**进行开发,使用**Sa-Token**作为登录验证和权限校验。
## 项目特点
- 后台采用父子包的方式以及友好的代码结构及注释,便于阅读及二次开发
- 实现前后端分离,通过 **Json** 进行数据交互,前端再也不用关注后端技术
- 页面交互,后台管理使用 **Vue2.x**,门户展示采用**Vue3**。
- 引入 **RBAC** 权限管理设计,灵活的权限控制,按钮级别的权限控制,满足绝大部分的权限需求
- 采用**Markdown** 编辑器([vditor](https://b3log.org/vditor/)),更符合开发者的编辑方式
- 一键建站,快速迁移,数据备份,Markdown导入,Markdown导出
## 项目目录
- doc:资源文件;
- xiaohai_admin: 系统入口;
- xiaohai_common:提供公共类;
- xiaohai_file:提供文件上传相关服务;
- xiaohai_generator:提供mybatis-plus代码生成相关服务;
- xiaohai_note:提供博客相关服务;
- xiaohai_system:提供系统(用户、角色、菜单、字典等)相关服务;
- xiaohai_web: VUE2的后台管理页面;
- xiaohai_web-show:VUE3的门户网站;
## 未来计划
- [x] 基础框架搭建
- [x] 增加用户管理
- [x] 增加角色管理
- [x] 增加菜单管理、按钮级别的权限控制
- [x] 增加数据字典管理
- [x] 增加在线用户管理
- [x] 增加标签、分类管理
- [x] 增加文章、写作管理
- [x] 增加必应图片接口
- [x] web-show页面使用web页面登录
- [x] 适配web-show页面的移动端布局
- [x] 增加评论模块、评论表情
- [x] 增加友链管理
- [x] 增加点赞模块
- [x] 增加web-show页面日志管理
- [x] 增加流量访问监控
- [x] 增加Markdown文章导入
- [x] 增加留言模块
- [x] 通过Jpom实现自动化部署
- [x] 增加网站配置
- [x] 增加问题反馈管理
- [x] 文件管理
- [X] 本地笔记同步
- [X] 邮箱提醒功能
- [X] 消息通知
- [ ] IP限流
- [ ] 第三方登录
- [X] 第三方平台获取、CSDN、掘金、简书、博客园、知乎
- [ ] 第三方平台同步
- [ ] 大模型辅助写博客
- [X] 数据备份,Markdown导入,Markdown导出
- [ ] ...
## 后端技术
### 框架
| 框架 | 说明 | 版本 |
| ------------------------------------------------------------ | -------------------- | -------------- |
| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.7.18 |
| [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 8.0+ |
| [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.5.3.1 |
| [Redis](https://redis.io/) | Redis | 5.0 / 6.0 /7.0 |
| [ Sa-Token ](https://sa-token.cc) | 权限认证框架 | 1.34.0 |
| [hibernate-validator](https://github.com/hibernate/hibernate-validator) | 参数校验组件 | 6.2.5 |
| [JavaMail API](https://github.com/jakartaee/mail-api) | 电子邮件发送 | 1.6.7 |
| [Spring MVC](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc) | MVC 框架 | 5.3.24 |
| [Springdoc](https://springdoc.org/) | Swagger 文档 | 1.7.0 |
| [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.18.34 |
| [Hutool](https://www.hutool.cn/) | Java工具包类库 | 5.8.25 |
| [Knife4j](https://doc.xiaominfo.com/) | Swagger 文档-增强 | 2.3.2 |
| [Springdoc](https://springdoc.org/) | Swagger 文档 | 1.7.0 |
| ...... | | |
## nginx配置
```
server {
listen 80;
server_name localhost;
location / {
alias D:/bolg/xiaohai-web-show/; #修改为xiaohai-web-show的打包路径
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /manage/ {
alias D:/bolg/xiaohai-web/; #修改为xiaohai-web的打包路径
try_files $uri $uri/ /manage/index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8089/prod-api/; #修改为后台请求地址
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
```
## 关注&交流
目前项目还存在很多不足之处,欢迎各位老哥进行技术探讨
## 打赏
如果觉得项目不错的话可以打赏哦。您的支持就是我最大的动力!

## 捐赠信息
| 捐赠者 | 捐赠金额 | 捐赠日期 |
|-------------|------|------------|
| Powerless🌨 | 1元 | 2024-03-19 |
## 特别鸣谢
- 感谢 [JetBrains](https://jb.gg/OpenSourceSupport) 提供的免费开源 License:
[
](https://www.jetbrains.com/?from=xiaohai_blog)
## 网站截图
### web
| web | web |
|:-----------------------------------------------:|:----------------------------------------------:|
|  |  |
|  |  |
|  |  |
|  |  |
|  |  |
|  |  |
|  |  |
|  |  |
### web-show
| web-show | web-show |
|-----------------------------------------------------------|-----------------------------------------------------------|
|  |  |
|  |  |
|  |  |
| mobile | mobile |
|  |  |
|  |  |