基于SpringBoot + MyBatis + MySQL + Redis + Vue2 + ElementUI 的社区文章管理系统
社区文章管理系统基于SpringBoot + MyBatis + MySQL + Redis + Vue2 + ElementUI,实现了用户注册、登录、发帖、评论、关注、搜索和管理员管理文章、用户的增删改查等功能。
git clone git@github.com:which0113/community-post-manage.git
cd frontend
确保 node >= 16,查看 node 版本
node -v
npm install
npm run serve
- vue.config.js 文件可修改前端启动地址, 默认:http://localhost:3001
- .env 文件可修改对接后端服务器接口的地址,默认:http://localhost:9001
方法一:生成 dist 文件部署
npm run build
方法二:使用 docker 容器部署
构建:
docker build -t freefish-community-frontend:v0.0.1 .
运行:
docker run -p 80:80 -d freefish-community-frontend:v0.0.1
- JDK 版本为 1.8
- MySQL 版本为 8.0+
- Maven 版本为 3.9+
- Redis 版本为 5.0+
- application-dev.yml 文件可修改 服务启动端口、MySQL、Redis 配置等等
- ddl.sql 文件是 MySQL 数据库文件,可 Ctrl A 全选 + Ctrl Enter 执行 快速初始化数据库
- 管理员默认 账号 | 密码 为:admin | 123456
方法一:生成 jar 包部署(跳过单元测试)
mvn package -DskipTests
方法二:使用 docker 容器部署
构建:
docker build -t freefish-community-backend:v0.0.1 .
运行:
docker run -p 9001:9001 -d freefish-community-backend:v0.0.1
- Vue2 构建 JavaScript 的框架
- ElementUI 美观易用的 UI 组件库
- SpringBoot
- Spring MVC
- MySQL 数据库
- Redis 数据缓存
- Spring Security(JWT 安全校验)
- MyBatis-Plus 及 MyBatis X 代码自动生成
- Hutool、Apache Common Utils、Gson 等工具库