推荐一个完整的外卖系统,盘它!
戳一戳→ 程序员的成长之路 文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
程序员的成长之路文章源自JAVA秀-https://www.javaxiu.com/10612.html
互联网/程序员/技术/资料共享 文章源自JAVA秀-https://www.javaxiu.com/10612.html
关注文章源自JAVA秀-https://www.javaxiu.com/10612.html
阅读本文大概需要 2 分钟。文章源自JAVA秀-https://www.javaxiu.com/10612.html
flash-waimai
一个完整的外卖系统,包括手机端,后台管理,api文章源自JAVA秀-https://www.javaxiu.com/10612.html
基于spring boot和vue的前后端分离的外卖系统文章源自JAVA秀-https://www.javaxiu.com/10612.html
包含完整的手机端,后台管理功能文章源自JAVA秀-https://www.javaxiu.com/10612.html
本项目主要供交流学习,不建议商用。文章源自JAVA秀-https://www.javaxiu.com/10612.html
技术选型
核心框架:Spring Boot文章源自JAVA秀-https://www.javaxiu.com/10612.html
数据库层:Spring data jpa/Spring data mongodb文章源自JAVA秀-https://www.javaxiu.com/10612.html
数据库连接池:Druid文章源自JAVA秀-https://www.javaxiu.com/10612.html
缓存:Ehcache文章源自JAVA秀-https://www.javaxiu.com/10612.html
前端:Vue.js文章源自JAVA秀-https://www.javaxiu.com/10612.html
数据库:mysql5.5以上,Mongodb4.0(不要使用最新版4.2)文章源自JAVA秀-https://www.javaxiu.com/10612.html
模块
flash-waimai-mobile 手机端站点文章源自JAVA秀-https://www.javaxiu.com/10612.html
flash-waimai-manage后台管理系统文章源自JAVA秀-https://www.javaxiu.com/10612.html
flash-waimai-api java接口服务文章源自JAVA秀-https://www.javaxiu.com/10612.html
flash-waimai-core 底层核心模块文章源自JAVA秀-https://www.javaxiu.com/10612.html
flash-waimai-generate 代码生成模块文章源自JAVA秀-https://www.javaxiu.com/10612.html
快速开始
数据存储采用了mysql和mongodb,其中基础管理配置功能数据使用mysql,业务数据使用mongodb存储。文章源自JAVA秀-https://www.javaxiu.com/10612.html
创建mysql数据库文章源自JAVA秀-https://www.javaxiu.com/10612.html
CREATE DATABASE IF NOT EXISTS waimai DEFAULT CHARSET utf8 COLLATE utf8_general_ci; CREATE USER 'waimai'@'%' IDENTIFIED BY 'waimai123'; GRANT ALL privileges ON waimai.* TO 'waimai'@'%'; flush privileges;
mysql数据库创建好了之后,启动flash-waimai-api服务,会自动初始化数据,无需开发人员自己手动初始化数据文章源自JAVA秀-https://www.javaxiu.com/10612.html
安装mongodb并创建数据库:flash-waimai 使用mongorestore命令 导入mongodb数据,由于测试数据量较大,打包放在了百度云盘:
链接:https://pan.baidu.com/s/1mfO7yckFL7lMb_O0BPsviw 提取码:apgd
下载后将文件解压到d:\elm,如下命令导入数据:文章源自JAVA秀-https://www.javaxiu.com/10612.html
mongorestore.exe -d flash-waimai d:\\elm
下载项目测试数据的图片(商家和食品图片):
链接:https://pan.baidu.com/s/1rvZDspoapWa6rEq2D_5kzw 提取码:urzw
,将图片存放到t_sys_cfg表中system.file.upload.path配置的目录下文章源自JAVA秀-https://www.javaxiu.com/10612.html启动管理平台:文章源自JAVA秀-https://www.javaxiu.com/10612.html
进入flash-waimai-manage目录:文章源自JAVA秀-https://www.javaxiu.com/10612.html
运行 npm install --registry=https://registry.npm.taobao.org文章源自JAVA秀-https://www.javaxiu.com/10612.html
运行npm run dev文章源自JAVA秀-https://www.javaxiu.com/10612.html
启动成功后访问 http://localhost:9528 ,登录,用户名密码:admin/admin文章源自JAVA秀-https://www.javaxiu.com/10612.html
启动手机端:文章源自JAVA秀-https://www.javaxiu.com/10612.html
进入flash-waimai-mobile目录:文章源自JAVA秀-https://www.javaxiu.com/10612.html
运行 npm install --registry=https://registry.npm.taobao.org文章源自JAVA秀-https://www.javaxiu.com/10612.html
运行npm run local文章源自JAVA秀-https://www.javaxiu.com/10612.html
启动成功后访问 http://localhost:8000文章源自JAVA秀-https://www.javaxiu.com/10612.html
运行效果图
后台管理文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
手机端文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
项目源码
文章源自JAVA秀-https://www.javaxiu.com/10612.html点击下方小卡片文章源自JAVA秀-https://www.javaxiu.com/10612.html
进入【Java轮子】文章源自JAVA秀-https://www.javaxiu.com/10612.html
后台回复「2113」即可获取文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
<END>文章源自JAVA秀-https://www.javaxiu.com/10612.html
扫码加入技术交流群,不定时「送书」文章源自JAVA秀-https://www.javaxiu.com/10612.html
文章源自JAVA秀-https://www.javaxiu.com/10612.html
推荐阅读:文章源自JAVA秀-https://www.javaxiu.com/10612.html
笑死,小米新logo是这么来的文章源自JAVA秀-https://www.javaxiu.com/10612.html
能挣钱的,开源 SpringBoot 商城系统,功能超全,超漂亮,真TMD香!文章源自JAVA秀-https://www.javaxiu.com/10612.html
互联网初中高级大厂面试题(9个G)文章源自JAVA秀-https://www.javaxiu.com/10612.html
内容包含Java基础、JavaWeb、MySQL性能优化、JVM、锁、百万并发、消息队列、高性能缓存、反射、Spring全家桶原理、微服务、Zookeeper、数据结构、限流熔断降级......等技术栈!文章源自JAVA秀-https://www.javaxiu.com/10612.html
⬇戳阅读原文领取! 朕已阅 文章源自JAVA秀-https://www.javaxiu.com/10612.html
阅读原文文章源自JAVA秀-https://www.javaxiu.com/10612.html

评论