11 Star 541 Fork 164

liner123 / newgulimall

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
bug
Loading...
README

newgulimall

介绍

新 谷粒商城项目是一个较大型的分布式电商项目,主要后端采用 Spirngboot 2.3.1.RELEASE,前端使用Vue.js。

前后端简单crud代码均由人人开源的自动生成器生成,学习只用关心较难的业务逻辑。是一个较为不错的进阶Springboot的电商项目。

技术栈

JavaSe

Springboot

Mysql

Vue

Swagger

阿里云oss

Springcloud : nacos , openfeign , gateway 等

软件架构

gulimall-common 共需的共有包,其中包括共同的依赖,to, 常量,统一异常处理, 一些工具类等

gulimall-coupon 优惠券服务,管理优惠卷和满减信息

gulimall-gateway 网关服务 , 进行服务转发和负载均衡 端口为88

gulimall-member 用户管理服务

gulimall-order 订单服务

gulimall-product 商品服务

gulimall-thrid-party 第三方服务(oss)

gulimall-ware 仓库服务

renren-fast 人人开源的默认后台系统

renren-generator 代码生成器

安装教程

  1. 确保安装环境,安装node-js v10.2.4 以上,安装地址 http://nodejs.cn/

  2. 安装git 版本控制 https://gitforwindows.org/

  3. 安装mysql5.7 https://www.mysql.com/

  4. git终端 下载项目

    git clone https://gitee.com/liner123/newgulimall.git
  5. 使用 IDEA 或者 Eclipse 进行打开 Eclipse安装地址 https://www.eclipse.org/ IDEA安装地址 https://www.jetbrains.com/idea/

  6. 建数据库,如图。

    2.png

    1.png

数据库和微服务对应关系

gulimall-admin ------ renren-fast

gulimall-oms ----- gulimall-order

gulimall-pms ----- gulimall-product

gulimall-sms ----- gulimall-coupon

gulimall-ums ----- gulimall-member

gulimall-wms ----- gulimall-ware

  1. 导入sql文件(sql文件放在每一个微服务的resource文件下的sql文件架中)

  2. 修改各微服务的 application.yml 文件对应自己的数据库地址和数据库名称,用户,密码

  3. 安装nacos,并在application.yml 中配置nacos的注册地址,启动nacos

  4. 若要使用 gulimall-thrid-party 第三方服务里面的oss 需要自己去阿里云获取自己的 endpoint accessId secret-key bucket 等,

    然后修改application.yml 将其修改为自己的。

  5. 启动上述各个微服务。

  6. 前端服务地址 https://gitee.com/liner123/new-gulimall-vue.git

  7. git clone  https://gitee.com/liner123/new-gulimall-vue.git  // 下载前端项目
  8. 进入安装目录,在终端使用命令

    npm run dev
  9. 项目启动成功,访问 localhost:8001

使用说明

随便用

尽量按照我的安装教程弄,因为需要建较多数据库,尽量不要出现错误。

gulimall-heigher 分支有高级篇内容(完成了大概3/4),gulimall-heigher.md 中有笔记和遇到的坑,希望对你们有帮助。

如果有帮助,请点个star吧,谢谢啦。

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

空文件

简介

新 谷粒商城 展开 收起
Java 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/liner123/newgulimall.git
git@gitee.com:liner123/newgulimall.git
liner123
newgulimall
newgulimall
crudmall

搜索帮助

14c37bed 8189591 565d56ea 8189591