# newgulimall **Repository Path**: coder_you/newgulimall ## Basic Information - **Project Name**: newgulimall - **Description**: 新 谷粒商城 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: crudmall - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 182 - **Created**: 2020-10-09 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # newgulimall #### 介绍 新 谷粒商城项目是一个较大型的分布式电商项目,主要后端采用 Spirngboot 2.3.1.RELEASE,前端使用Vue。 前后端简单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/](http://nodejs.cn/) 2. 安装git 版本控制 [https://gitforwindows.org/](https://gitforwindows.org/) 3. 安装mysql5.7 [https://www.mysql.com/](https://www.mysql.com/) 4. git终端 下载项目 ```shell git clone https://gitee.com/liner123/newgulimall.git ``` 5. 使用 IDEA 或者 Eclipse 进行打开 Eclipse安装地址 [https://www.eclipse.org/](https://www.eclipse.org/) IDEA安装地址 [https://www.jetbrains.com/idea/](https://www.jetbrains.com/idea/) 6. 建数据库,如图。 ![2.png](picture/2.png) ![1.png](picture/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 4. 导入sql文件(sql文件放在每一个微服务的resource文件下的sql文件架中) 5. 修改各微服务的 application.yml 文件对应自己的数据库地址和数据库名称,用户,密码 6. 安装nacos,并在application.yml 中配置nacos的注册地址,启动nacos 7. 若要使用 gulimall-thrid-party 第三方服务里面的oss 需要自己去阿里云获取自己的 endpoint accessId secret-key bucket 等, 然后修改application.yml 将其修改为自己的。 8. 启动上述各个微服务。 9. 前端服务地址 https://gitee.com/liner123/new-gulimall-vue.git 10. ```shell git clone https://gitee.com/liner123/new-gulimall-vue.git // 下载前端项目 ``` 11. 进入安装目录,在终端使用命令 ```shell npm run dev ``` 12. 项目启动成功,访问 localhost:8001 #### 使用说明 随便用 尽量按照我的安装教程弄,因为需要建较多数据库,尽量不要出现错误。 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request