# 基于mall教学项目 **Repository Path**: t159/mall-teach ## Basic Information - **Project Name**: 基于mall教学项目 - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2025-10-15 - **Last Updated**: 2025-10-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mall ## 友情提示 > 1. **快速体验项目**:[在线访问地址](https://www.macrozheng.com/admin/index.html)。 > 2. **全套学习教程**:[《mall学习教程》](https://www.macrozheng.com)。 > 3. **视频教程(最新版)**:[《mall视频教程》](https://www.macrozheng.com/mall/foreword/mall_video.html)。 > 4. **分支说明**:`master`分支基于Spring Boot 2.7+JDK 8,`dev-v3`分支基于Spring Boot 3.2+JDK 17。 ## 前言 `mall`项目致力于打造一个完整的电商系统,采用现阶段主流技术实现。 ## 项目文档 文档地址:[https://www.macrozheng.com](https://www.macrozheng.com) ## 项目介绍 `mall`项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。 ### 项目演示 #### 后台管理系统 前端项目`mall-admin-web`地址:[https://github.com/macrozheng/mall-admin-web](https://github.com/macrozheng/mall-admin-web) 项目演示地址:[https://www.macrozheng.com/admin/index.html](https://www.macrozheng.com/admin/index.html) ![后台管理系统功能演示](./document/resource/mall_admin_show.png) #### 前台商城系统 前端项目`mall-app-web`地址:[https://github.com/macrozheng/mall-app-web](https://github.com/macrozheng/mall-app-web) 项目演示地址(将浏览器切换为手机模式效果更佳):[https://www.macrozheng.com/app/](https://www.macrozheng.com/app/) ![前台商城系统功能演示](./document/resource/re_mall_app_show.jpg) ### 组织结构 ``` mall ├── mall-common -- 工具类及通用代码 ├── mall-mbg -- MyBatisGenerator生成的数据库操作代码 ├── mall-security -- SpringSecurity封装公用模块 ├── mall-admin -- 后台商城管理系统接口 ├── mall-search -- 基于Elasticsearch的商品搜索系统 ├── mall-portal -- 前台商城系统接口 └── mall-demo -- 框架搭建时的测试代码 ``` ### 技术选型 #### 后端技术 | 技术 | 说明 | 官网 | | ----------------- | --------------------- | ------------------------------------------------------------ | | Spring Boot | 容器 + MVC框架 | [https://spring.io/projects/spring-boot](https://spring.io/projects/spring-boot) | | MyBatis | ORM框架 | [http://mybatis.org](http://mybatis.org) | | MyBatis Generator | 数据库代码生成工具 | [http://mybatis.org/mybatis-3-spring-boot](http://mybatis.org/mybatis-3-spring-boot) | | Druid | 数据库连接池 | [https://github.com/alibaba/druid](https://github.com/alibaba/druid) | | Spring Security | 权限控制框架 | [https://spring.io/projects/spring-security](https://spring.io/projects/spring-security) | | Spring Redis | Redis操作框架 | [https://spring.io/projects/spring-data-redis](https://spring.io/projects/spring-data-redis) | | Elasticsearch | 搜索服务 | [https://www.elastic.co/products/elasticsearch](https://www.elastic.co/products/elasticsearch) | | RabbitMQ | 消息队列 | [https://www.rabbitmq.com](https://www.rabbitmq.com) | | Spring AMQP | RabbitMQ操作框架 | [https://spring.io/projects/spring-amqp](https://spring.io/projects/spring-amqp) | | MongoDB | NoSQL数据库 | [https://www.mongodb.com](https://www.mongodb.com) | | Spring Data MongoDB | MongoDB操作框架 | [https://spring.io/projects/spring-data-mongodb](https://spring.io/projects/spring-data-mongodb) | | Docker | 容器化部署工具 | [https://www.docker.com](https://www.docker.com) | | Spring Cloud Alibaba | 微服务架构 | [https://github.com/alibaba/spring-cloud-alibaba](https://github.com/alibaba/spring-cloud-alibaba) | #### 前端技术 | 技术 | 说明 | 官网 | | ----------------- | --------------------- | ------------------------------------------------------------ | | Vue | 核心前端框架 | [https://vuejs.org](https://vuejs.org) | | Vuex | 全局状态管理框架 | [https://vuex.vuejs.org](https://vuex.vuejs.org) | | uni-app | 移动端前端框架 | [https://uniapp.dcloud.io](https://uniapp.dcloud.io) | | mix-mall | 电商项目模板 | [https://ext.dcloud.net.cn/plugin?id=200](https://ext.dcloud.net.cn/plugin?id=200) | | luch-request | HTTP请求框架 | [https://github.com/lei-mu/luch-request](https://github.com/lei-mu/luch-request) | ### 架构图 #### 系统架构图 ![系统架构图](./document/resource/re_mall_system_arch.jpg) #### 业务架构图 ![业务架构图](./document/resource/re_mall_business_arch.jpg) ### 模块介绍 #### 后台管理系统 `mall-admin` - 商品管理:[功能结构图-商品.jpg](document/resource/mind_product.jpg) - 订单管理:[功能结构图-订单.jpg](document/resource/mind_order.jpg) - 促销管理:[功能结构图-促销.jpg](document/resource/mind_sale.jpg) - 内容管理:[功能结构图-内容.jpg](document/resource/mind_content.jpg) - 用户管理:[功能结构图-用户.jpg](document/resource/mind_member.jpg) #### 前台商城系统 `mall-portal` [功能结构图-前台.jpg](document/resource/mind_portal.jpg) ### 开发进度 ![项目开发进度图](./document/resource/re_mall_dev_flow.jpg) ## 环境搭建 ### 开发工具 推荐使用以下开发工具: - **IDE**:IntelliJ IDEA / Eclipse - **数据库**:MySQL 5.7+ - **缓存**:Redis - **搜索引擎**:Elasticsearch - **消息队列**:RabbitMQ - **对象存储**:MinIO / 阿里云OSS ### 开发环境 #### Windows环境部署 - Windows环境搭建请参考:[mall项目后端开发环境搭建](https://www.macrozheng.com/mall/start/mall_deploy_windows.html) - 注意:如果只启动`mall-admin`模块,仅需安装MySQL、Redis即可; - 克隆`mall-admin-web`项目,并导入到IDEA中完成编译:[前端项目地址](https://github.com/macrozheng/mall-admin-web) - `mall-admin-web`项目的安装及部署请参考:[mall项目前端发环境搭建](https://www.macrozheng.com/mall/start/mall_deploy_web.html) ```