Skip to content

Commit aa1b03e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 50e9ff4 + e16b687 commit aa1b03e

File tree

1 file changed

+138
-2
lines changed

1 file changed

+138
-2
lines changed

README.md

Lines changed: 138 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,138 @@
1-
# DBBlog
2-
这个一个前后端分离的博客项目,前端采用vue2.x,后端采用springboot开发
1+
## 简介
2+
这是一个基于Springboot2.x,vue2.x的前后端分离的开源博客系统,提供 前端界面+管理界面+后台服务 的整套系统源码。响应式设计,手机、平板、PC,都有良好的视觉效果!
3+
4+
- 你可以拿它作为前端Vue2.0学习的练手教程;
5+
- 你也可以把它作为springboot技术的学习项目;
6+
- 你还可以将其视为一个前后端分离的项目实践;
7+
- ...
8+
9+
## 站点演示
10+
[www.dblearn.cn](www.dblearn.cn)
11+
12+
## 模块分层
13+
### 后端模块
14+
```shell
15+
dbblog
16+
├── dbblog-auth # 鉴权模块:shiro
17+
│   ├── pom.xml
18+
│   └── src
19+
├── dbblog-core # 核心模块:配置文件,Entity类,mapper类,工具类,异常过滤等
20+
│   ├── pom.xml
21+
│   └── src
22+
├── dbblog-manage # 后台管理界面Service
23+
│   ├── pom.xml
24+
│   └── src
25+
├── dbblog-portal # 前端界面Service
26+
│   ├── pom.xml
27+
└── └── src
28+
```
29+
### 前端模块
30+
#### 后台管理页面
31+
```shell
32+
├── assets
33+
├── components # 公共组件
34+
├── element-ui
35+
├── element-ui-theme # elementUI主题
36+
├── icons
37+
├── router # 路由
38+
├── store # vuex
39+
├── utils # js工具类
40+
└── views
41+
├── common # 公共模块
42+
└── modules
43+
├── article # 文章模块
44+
├── book # 阅读模块
45+
├── comment # 评论模块
46+
├── operation # 运维模块
47+
└── sys # 系统模块
48+
49+
50+
```
51+
#### 前台页面
52+
```shell
53+
├── assets
54+
├── common
55+
├── components
56+
│   ├── content # 页面
57+
│   │   ├── ArticleContent.vue # 文章详情页
58+
│   │   ├── ArticleListContent.vue # 文章列表页
59+
│   │   ├── BookContent.vue # 图书详情页
60+
│   │   ├── BookListContent.vue # 图书列表页
61+
│   │   ├── BookNoteContent.vue # 笔记详情页
62+
│   │   ├── BookNoteListContent.vue # 笔记列表页
63+
│   │   ├── HomeContent.vue # 首页
64+
│   │   └── TimeLineContent.vue # 归档页
65+
│   ├── footer
66+
│   ├── header
67+
│   ├── index
68+
│   ├── utils
69+
│   └── views # 页面组件库
70+
│   ├── Archive
71+
│   ├── Article
72+
│   ├── Book
73+
│   ├── BookNote
74+
│   ├── Classify
75+
│   └── TimeLine
76+
├── router # 路由
77+
├── store # Vuex
78+
└── utils # js工具类
79+
80+
```
81+
## 项目部署
82+
### 服务端
83+
项目后端环境
84+
- JDK1.8
85+
- Mysql5.7
86+
- Redis
87+
- IDEA编译器
88+
- Lombox插件(百度一下)
89+
90+
部署步骤:
91+
1. 创建数据库dbblog,并导入dbblog-backend -> db里的所有sql文件
92+
2. 修改dbblog-backend -> dbblog-> dbblog-core里的application-*.yml的数据库连接和redis连接
93+
3. 导入项目,并且运行dbblog-backend -> dbblog-portal -> BlogApplication里的main方法
94+
95+
### 前端
96+
前端环境:
97+
- Node.js 8.0+
98+
- WebStorm编辑器
99+
100+
部署步骤:
101+
1. 导入项目,运行 npm install(如果失败,清空包后试试cnpm install)
102+
2. 启动项目:npm run dev
103+
104+
## 界面预览
105+
106+
![博文图片1.png](http://oss.dblearn.cn/dbblog/20190310/34c7f3a92bae478c882caaed586042dc.png)
107+
108+
![博文图片2.png](http://oss.dblearn.cn/dbblog/20190310/2403f9585bf64dd2a90b180314a93403.png)
109+
110+
![博文图片3.png](http://oss.dblearn.cn/dbblog/20190310/c1af8818cbac486394eb083463c3c2d7.png)
111+
112+
![博文图片6.png](http://oss.dblearn.cn/dbblog/20190310/558c14cbdee84be99f32c267033df276.png)
113+
114+
![博文图片7.png](http://oss.dblearn.cn/dbblog/20190310/9289e11d4e2b489885246c6023924458.png)
115+
116+
![1.png](http://oss.dblearn.cn/dbblog/20190310/61b8efb183144323b4138b2b9eecdfb7.png)
117+
118+
![2.png](http://oss.dblearn.cn/dbblog/20190310/4e0874dc164e44028e500769f829d7e1.png)
119+
120+
![3.png](http://oss.dblearn.cn/dbblog/20190310/7c641e6681ef468599dbe152bc0ea02a.png)
121+
122+
![4.png](http://oss.dblearn.cn/dbblog/20190310/ee69937e2bd9494f882da788932123ca.png)
123+
124+
125+
## 碎碎念
126+
上大学的时候做过博客,技术选型也从一开始的SSM+JSP [博客1](https://github.com/llldddbbb/Blog)
127+
128+
--> 过渡到分模块的SpringBoot [博客2](https://github.com/llldddbbb/Blog2)
129+
130+
--> 到现在的前后端分离博客 [博客3](https://github.com/llldddbbb/dbblog)
131+
132+
如果是初学Java的朋友也可以跟着流程借鉴借鉴这些代码,试着实现一个自己的博客,相信能对你的成长有所帮助!
133+
134+
如果有心,不妨请博主喝杯茶::laughing::
135+
136+
![支付.jpg](http://oss.dblearn.cn/dbblog/20190310/7517419c57e14d548ec13f4a550edbc0.jpg)
137+
138+
最后的最后,我的github地址是[https://github.com/llldddbbb/dbblog](https://github.com/llldddbbb/dbblog),开源不易,一定要给我==Star==哦!!

0 commit comments

Comments
 (0)