前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >A blog system based on SpringBoot

A blog system based on SpringBoot

作者头像
小炜同学
发布2022-09-23 10:43:16
3120
发布2022-09-23 10:43:16
举报
文章被收录于专栏:Java领域客栈

SlcpBlog

A blog system based onSpringBoot and vue

Main Features

  • Articles, categories, labels, music addition, deletion, editing, etc.
  • Support the function of listening to songs.
  • Support photo album function.
  • Support article search.
  • Sidebar function, latest articles, hottest articles, labels, etc.
  • Article editing supportMarkdown
  • It supportsRediscaching and is implemented based on annotations.
  • Integrated drawing bed function.
  • Complete comment function, including reply comments and email reminders of comments.
  • Integrate third-party QQ login.
  • Back office integration Vue (recently, semi-finished products).

Basic environment

Windows Environmental requirements

back-end

代码语言:javascript
复制
JDK = 1.8
MySQL >= 5.7
Maven >= 3.0
Redis >= 6.0
IntelliJ IDEA
Xshell
MySQL图形化操作工具

front end(Optional)

代码语言:javascript
复制
Node.js
VsCode 前端工具
VUE

reminder: This front-end option is optional. If you don't integrate Vue, you can directly skip the front-end (the background management system based on Vue, which is an abnormal attendance project I used to play, has not completely replaced the background management of this project at present, mainly because the background of this project is too ugly! I don't know what I thought when I was a freshman at that time ????)

JDK = 1.8

Download the latest version of version 1.8 on the official website and install it after downloading.

代码语言:javascript
复制
#环境变量配置(现在默认会自动配置好)
略

#打开CMD命令行工具,检查是否配置成功
java -version

Maven >= 3.0

Download the latest version of the compressed package from Maven official website.

Download :https://maven.apache.org/download.cgi

代码语言:javascript
复制
#环境变量配置
略

#打开CMD命令行工具,检查是否配置成功
mvn -v

Mysql >= 5.7(new)

Installation tutorial:https://www.runoob.com/mysql/mysql-install.html

Download :https://dev.mysql.com/downloads/mysql/

Visit MySQL's visual database development tool: the installation tutorial of Navicat premium tool can be searched by Baidu.

Redis

Download :https://redis.io/download/

Installation tutorial:解压,配置(密码,默认无密码)

代码语言:javascript
复制
#快捷启动命令.bat
redis-server.exe redis.windows.conf
pause

IntelliJ IDEA

Installation tutorial:https://blog.csdn.net/Sunshine_Mr_Sun/article/details/123891067

Xshell

Installation tutorial:https://blog.csdn.net/Sunshine_Mr_Sun/article/details/124320972

VSCode

Download :https://code.visualstudio.com/

Node.js

Installation tutorial:https://www.runoob.com/nodejs/nodejs-install-setup.html

RUN

Back end startup steps

  • Create DB
  • Import project
  • Configure yaml
  • Successful startup

reminder: The SQL file has been provided and only needs to be executed myblog. sql Import the project into idea (the tool used in this project is idea. If you use ecplise, you can use it as well. After all, Baidu can't do anything.) Remember to modify the configuration of the connection database before starting If the console prints the access path, it is OK

**Front end startup steps * * (optional)

代码语言:javascript
复制
#打开windows命令行窗口,进入项目目录
cd 路径/topicUI

#强烈建议不要用直接使用 cnpm 安装,会有各种诡异的 bug,可以通过重新指定 registry 来解决 npm 安装速度慢的问题。
npm install --registry=https://registry.npm.taobao.org

#启动项目
npm run dev

Open the browser and enter: http://localhost:8080 (the default account / password has two 'admin/1')

If the login page can be displayed correctly and successfully, and the menu and page display are normal, it indicates that the project is successfully launched

Server deployment

Linux deployment must first obtain jars and dists based on win operation, and then operate. If there is no ECs, here-download VMware

Linux environment requirements

代码语言:javascript
复制
docker
docker-compose
nginx

docker

Installation tutorial:https://blog.csdn.net/Sunshine_Mr_Sun/article/details/123206789

nginx

Download:http://nginx.org/download/

Deployment steps

  • Package the front and rear end projects respectively (jar, dist)
  • Put dist into nginx and configure nginx
  • Modify dockerfile and docker compose YML file (file provided)
  • Execute docker build -t myblog:1.0
  • Docker images check whether the image is generated
  • Docker compose up (check whether it is started successfully. After that, start it in the background -d)
  • View and login

Problem related

If you have any questions, please mention issue, or send the problem description to my email1206128610@qq.com. I will answer as soon as possible It is recommended to submit issue

To all of you ????‍♀️????‍♂️

If this project helps you, please hereLeave your website for more people to see.

Your reply will be the driving force for me to continue updating and maintaining.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年07月03日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • SlcpBlog
  • Main Features
  • Basic environment
    • Windows Environmental requirements
    • RUN
    • Server deployment
    • Problem related
    • To all of you ????‍♀️????‍♂️
    相关产品与服务
    容器镜像服务
    容器镜像服务(Tencent Container Registry,TCR)为您提供安全独享、高性能的容器镜像托管分发服务。您可同时在全球多个地域创建独享实例,以实现容器镜像的就近拉取,降低拉取时间,节约带宽成本。TCR 提供细颗粒度的权限管理及访问控制,保障您的数据安全。
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档