# manster外卖 **Repository Path**: manster1231/manster-takeout ## Basic Information - **Project Name**: manster外卖 - **Description**: 基于Springboot + vue 开发的外卖餐购项目(后台管理+消费者端),前端使用 vue ,Element-ui,后端使用 Mybatisplus 来方便 sql 编写、 使用 Mysql8 来存储数据、使用Swagger2 作为接口管理、使用 Redis 作为缓存。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-06-15 - **Last Updated**: 2023-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vue, SpringBoot, Redis ## README # 外卖系统 **回答问题有偿(勿扰)** #### 1、介绍 基于Springboot + vue 开发的外卖餐购项目(后台管理+消费者端),前端使用 vue ,Element-ui,后端使用 Mybatisplus 来方便 sql 编写、 使用 Mysql8 来存储数据、使用Swagger2 作为接口管理、使用 Redis 作为缓存。 #### 2、主要的请求路径: 后端请求: 后端登录页: http://localhost:8081/backend/page/login/login.html 后端主要展示页/主页: http://localhost:8081/backend/index.html 消费端请求: 消费端登录页: http://localhost:8081/front/page/login.html 消费端主页: http://localhost:8081/front/index.html Swagger接口文档的请求: http://localhost:8081/doc.html#/home #### 3、功能 目前实现了如下功能: 1) 菜品(批量)启售和(批量)停售 2)菜品的批量删除 3)套餐的(批量)启售,停售 4) 套餐管理的修改 5) 后台按条件查看和展示客户订单 5) 修改订单状态 6) 手机端减少购物车中的菜品或者套餐数量 7) 用户查看自己订单 8) 移动端点击套餐图片查看套餐具体菜品 注意:启动项目前,需要启动Redis服务,因为项目前端验证码、前后端的菜品、套餐等模块都使用到了Redis。 菜品数据(Dish)采用Redis来实现缓存,需要导入依赖: ```xml org.springframework.boot spring-boot-starter-data-redis ``` SpringData Cache的具体实现需要整合具体的缓存应用来实现,SpringDataCache只是简化、封装了作为缓存的细节 套餐数据(Setmeal)采用SpringData Cache来实现缓存,需要导入依赖: ```xml org.springframework.boot spring-boot-starter-cache ``` ```yaml spring: redis: host: localhost # 本地IP 或是 虚拟机IP port: 6379 # password: root database: 0 # 默认使用 0号db cache: redis: time-to-live: 1800000 # 设置缓存数据的过期时间 ``` #### 4、示例 **后端** ![](./images/back_login.png) ![](./images/back_emp.png) ![](./images/back_category.png) ![](./images/back_dish.png) ![](./images/back_order.png) ![](./images/back_order_detail.png) ![](./images/back_order_finished.png) ![](./images/back_setmeal.png) ![](./images/back_setmeal_edit.png) **前端** ![](./images/front_login.png) ![](./images/front_email.png) ![](./images/front_index.png) ![](./images/front_addcart.png) ![](./images/front_shoppingcart.png) ![](./images/front_address_add.png) ![](./images/front_address.png) ![](./images/front_add_order.png) ![](./images/front_pay_success.png) ![](./images/front_order_detail.png) ![](./images/front_usercenter.png)