此项目采用SpringBoot
、Spring Security
、Mybatis
、Redis
等建立起来的一整套商城,后端管理系统采用Vue,用户端采用微信小程序。用于把最近学习的东西融合到一块,未来将持续更新,后续补全文档。
后台系统Swagger-ui文档:https://youngqz.cn/mall-admin/doc.html
前台系统Swagger-ui文档:https://youngqz.cn/mall-client/doc.html
mall
├── doc ---------------->笔记
├── young-admin -------->后台系统
├── young-client-api --->前台系统
├── young-common ------->工具类及通用代码
├── young-db ----------->MyBatisGenerator生成的数据库操作代码
└── young-security ----->SpringSecurity封装公用模块
工具 | 说明 | 官网 |
---|---|---|
IDEA | 开发IDE | https://www.jetbrains.com/idea/download |
RedisDesktop | redis客户端连接工具 | https://github.com/qishibo/AnotherRedisDesktopManager |
finalshell | Linux远程连接工具 | http://www.hostbuf.com/downloads/finalshell_install.exe |
Navicat | 数据库连接工具 | http://www.formysql.com/xiazai.html |
Snipaste | 屏幕截图工具 | https://www.snipaste.com/ |
Postman | API接口调试工具 | https://www.postman.com/ |
Typora | Markdown编辑器 | https://typora.io/ |
工具 | 版本号 | 下载 |
---|---|---|
JDK | 1.8 | https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html |
Mysql | 5.7 | https://www.mysql.com/ |
Redis | 5.0 | https://redis.io/download |
Nginx | 1.10 | http://nginx.org/en/download.html |
只需要clone项目到本地,确保开发环境正确,直接运行即可
1)、本地执行maven命令:clean install -pl young-common,young-db,young-security -am
2)、把jar
包上传到linux
服务器
3)、执行脚本(脚本在)项目的doc/deploy/sh
目录下
把jar
包分别拷贝到young-mall-admin
和young-mall-client
目录下
分别执行admin-start.sh
和client-start.sh
脚本即可
4)、查看日志,日志在 /young-mal/${APP_NAME}/logs/${APP_NAME}/
目录下
tailf young-mall-admin.2020-12-29.0.log
3、jenkins环境部署
目前jenkins部署只是简单的使用Jenkins远程打包,把jar包发送到目标机器,并执行脚本,其实就是把linux环境
部署的步骤实现自动化
具体配置查看doc/deploy/jenkins-deploy.md
文档
项目参考:
shiro
为Spring Security
项目介绍:mall-admin-web是一个电商后台管理系统的前端项目,基于Vue+Element实现。
项目参考:young-mall项目的young-admin模块的一些页面布局样式参考了mall-admin-web项目。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。