{"id":18794028,"url":"https://github.com/cjbi/weshop","last_synced_at":"2025-04-07T12:09:03.614Z","repository":{"id":121827793,"uuid":"155536988","full_name":"cjbi/weshop","owner":"cjbi","description":"Weshop是基于Spring Cloud(Greenwich)开发的小程序商城系统，提供整套公共微服务服务模块，包含用户中心、商品中心、订单中心、支付中心四大基础服务模块，微信端、管理平台两大聚合服务模块，支持服务治理、监控和追踪等功能。","archived":false,"fork":false,"pushed_at":"2024-08-26T16:28:37.000Z","size":87070,"stargazers_count":187,"open_issues_count":5,"forks_count":106,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T10:08:23.656Z","etag":null,"topics":["ant-design","java","react"],"latest_commit_sha":null,"homepage":"http://wetech.tech/weshop","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjbi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-31T10:11:49.000Z","updated_at":"2025-03-14T01:20:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb15e467-5a6b-4221-a929-2e0c08bf3057","html_url":"https://github.com/cjbi/weshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjbi%2Fweshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjbi%2Fweshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjbi%2Fweshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjbi%2Fweshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjbi","download_url":"https://codeload.github.com/cjbi/weshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648978,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ant-design","java","react"],"created_at":"2024-11-07T21:27:50.796Z","updated_at":"2025-04-07T12:09:03.586Z","avatar_url":"https://github.com/cjbi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"WESHOP |  基于微服务的小程序商城系统\n---\nWeshop是基于Spring Cloud(Greenwich)开发的小程序商城系统，提供整套公共微服务服务模块，包含用户中心、商品中心、订单中心、支付中心四大基础服务模块，微信端、管理平台两大聚合服务模块，支持服务治理、监控和追踪等功能。\n\n## 请注意\n\n管理平台功能还没有实现，很多功能未完善，没太多时间维护。感兴趣的Fork一份自己完善。\n\n## 组织结构\n\n```\nweshop\n├── weshop-common -- 框架公共模块\n├── weshop-eureka-server -- eureka注册中心[端口:8761]\n├── weshop-config-server -- 配置中心\n├── weshop-api-gateway -- api网关[端口:8020]\n├── weshop-hystrix-dashboard -- 断路器监控面板[端口:1301]\n├── weshop-example -- 项目示例工程\n|    ├── weshop-example-api -- 远程服务api接口\n|    ├── weshop-example-provider -- 服务提供方[端口:9998]\n|    ├── weshop-example-consumer -- 服务消费方[端口:9999]\n├── weshop-user-api -- 用户中心api\n├── weshop-user -- 用户中心基础服务\n├── weshop-goods-api -- 商品中心api\n├── weshop-goods -- 商品中心基础服务\n├── weshop-order-api -- 订单中心api\n├── weshop-order -- 订单中心基础服务\n├── weshop-storage-api -- 对象存储服务api\n├── weshop-storage -- 对象存储服务\n├── weshop-wechat -- 微信端聚合服务\n├── weshop-wechat-ui -- 微信小程序页面\n├── weshop-admin -- 管理平台聚合服务\n├── weshop-admin-ui -- 管理平台页面\n├── weshop-pay-api -- 支付中心api\n├── weshop-pay -- 支付中心基础服务\n```\n\n\u003e 模块划分\n\n![](docs/images/模块划分.png)\n\n### 后端技术\n\n技术 | 名称 | 版本 | 官网\n----|------|----|----\nSpring Boot | 应用框架 | 2.1.2.RELEASE | [https://projects.spring.io/spring-boot/](https://projects.spring.io/spring-boot/)\nspring-cloud-netflix | 微服务框架 | Greenwich.RELEASE | [https://projects.spring.io/spring-cloud/](https://projects.spring.io/spring-boot/)\nMyBatis | ORM框架 | 3.2.1 |  [http://www.mybatis.org/mybatis-3/zh/index.html](http://www.mybatis.org/mybatis-3/zh/index.html)\nMapper | MyBatis 通用 Mapper4 | 4.0.0 |  [https://gitee.com/free/Mapper](https://gitee.com/free/Mapper)\nMyBatis Generator | 代码生成 | 1.3.5 |  [http://www.mybatis.org/generator/index.html](http://www.mybatis.org/generator/index.html)\nSwagger2 | 在线Api文档 | 2.9.2 |  [https://swagger.io/](https://swagger.io/)\nThymeleaf | 模板引擎 | 3.0.9.RELEASE |  [https://www.thymeleaf.org/](https://www.thymeleaf.org/)\nLogback | 日志组件 | 1.1.3 |  [https://logback.qos.ch](https://logback.qos.ch/)\nDruid | 数据库连接池 | 0.2.23 |  [https://github.com/alibaba/druid](https://github.com/alibaba/druid)\nHibernate Validator | 后端校验框架 | 5.4.2.Final | [http://hibernate.org/validator/](http://hibernate.org/validator/)\nRabbitMQ | 消息中间件 | 5.4.3 | [http://www.rabbitmq.com/](http://www.rabbitmq.com/)\nRedis | 缓存 | 5.0.3 | [https://redis.io/](https://redis.io/)\nZipkin | 链路追踪 | 2.12.0 | [https://zipkin.io/](https://zipkin.io/)\n\n### 前端技术\n\n技术 | 名称 | 版本 |  官网\n----|------|----|----\nReact | 前端MVC框架 | 16.5.1 |  [https://reactjs.org/](https://reactjs.org/)\nAnt Design Pro | 开箱即用的中台前端/设计解决方案 | 2.1.0 |  [https://pro.ant.design/index-cn](https://pro.ant.design/index-cn)\n\n### 软件需求\n\n- JDK1.8+\n- MySQL5.6+\n- RabbitMQ 3.6.x+\n- Maven3.0+\n- ZipKinServer 3.7.0+\n\n## 功能\n\n### 商城功能\n\n- 首页\n- 专题列表、专题详情\n- 分类列表、分类详情\n- 品牌列表、品牌详情\n- 新品首发、人气推荐\n- 搜索\n- 商品详情、商品评价、商品分享\n- 购物车\n- 下单\n- 订单列表、订单详情\n- 地址、收藏、足迹、意见反馈\n- 客服\n\n### 管理平台功能(未完成)\n\n-  [ ]  会员管理\n-  [ ]  商城管理\n-  [ ]  商品管理\n-  [ ]  推广管理\n-  [ ] 系统管理\n\n## 当前进度与计划\n\n- [ ]  公众号文章同步\n- [x]  文章列表、文章详情展示\n- [x]  分享、点赞、收藏功能实现\n- [x]  评论相关展示和功能实现\n- [x]  生成海报功能的实现\n- [x]  评论消息通知功能的实现\n- [x]  专题、标签相关功能的实现\n- [ ]  后台管理功能实现\n\n### 在线演示\n\n。。。\n\n### 预览图\n\n\u003e 服务注册页面\n\n![](docs/preview/eureka.JPG)\n\n\u003e swagger\n\n![](docs/preview/swagger.gif)\n\n\u003e 首页\n\n![](docs/preview/index.gif)\n\n\u003e 商品页\n\n![](docs/preview/detail.gif)\n\n\u003e 购物车页\n\n![](docs/preview/orderlist.JPG)\n\n## 安装教程\n\n### 本地部署\n\n1. 通过git下载源码\n2. 创建数据库weshop，数据库编码为UTF-8\n3. 执行docs/sql/data.sql文件，初始化数据\n4. 修改配置中心(weshop-config-server)的database.properties和common.properties文件，更新MySQL账号和密码，更新RabbitMQ配置，更新zipkinServer配置\n5. 运行Maven命令mvn install(注意：安装weshop-admin模块因为会运行npm install和npm build命令时间会比较长，当然也可以手动在weshop-admin模块执行npm命令)\n6. 安装weshop-admin-ui模块，运行mvn install和mvn build命令，运行命令前需要安装nodeJs\n7. 运行weshop-eureka-server、weshop-config-server、weshop-api-gateway这几个基础服务\n8. 运行weshop-user、weshop-goods、weshop-order、weshop-pay这几个api服务\n9. 运行weshop-wechat、wechat-admin这几个endpoint\n10. http://localhost:8027/index.html访问后台管理，http://localhost:8020/weshop/swagger-ui.html访问Swagger页面\n11. 打开微信开发者工具，导入weshop-wechat-ui模块,点击编译即可，此时可以预览商城效果\n\n使用脚本启动: \n1. 执行命令 `mvn clean package -P env-prd` 生成target文件夹包含项目所有jar包和执行脚本\n2. 设置权限 `chmod +x -R target/`\n4. 切换到target目录 `cd target/`\n3. 启动: `startup-all.sh` 停止: `shutdown-all.sh`\n\n### 生产部署\n\n最低部署要求  1C2G x3\n\n### 获取代码\n\nhttps://github.com/cjbi/weshop\n\nhttps://gitee.com/cjbi/weshop\n\n## 许可证\n\nWeshop 使用 MIT 许可证发布，用户可以自由使用、复制、修改、合并、出版发行、散布、再授权及贩售 Weshop 及其副本。\n\n[查看许可证](LICENSE \"LICENSE\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjbi%2Fweshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjbi%2Fweshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjbi%2Fweshop/lists"}