{"id":14982950,"url":"https://github.com/xubinux/xbin-store","last_synced_at":"2025-05-15T07:06:14.380Z","repository":{"id":18908084,"uuid":"83182364","full_name":"xubinux/xbin-store","owner":"xubinux","description":"模仿国内知名B2C网站,实现的一个分布式B2C商城 使用Spring Boot 自动配置 Dubbox / MVC / MyBatis / Druid / Solr / Redis 等。使用Spring Cloud版本请查看","archived":false,"fork":false,"pushed_at":"2022-12-05T23:56:22.000Z","size":22036,"stargazers_count":2146,"open_issues_count":28,"forks_count":1126,"subscribers_count":235,"default_branch":"master","last_synced_at":"2025-04-14T12:58:47.812Z","etag":null,"topics":["activemq","b2c","dubbox","fastdfs","mybatis","redis","solr","spring","spring-mvc","xbin-store","zookeeper"],"latest_commit_sha":null,"homepage":"https://github.com/xubinux/xbin-store-cloud","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xubinux.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}},"created_at":"2017-02-26T04:19:53.000Z","updated_at":"2025-03-31T10:05:55.000Z","dependencies_parsed_at":"2022-07-14T23:46:13.184Z","dependency_job_id":null,"html_url":"https://github.com/xubinux/xbin-store","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/xubinux%2Fxbin-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xubinux%2Fxbin-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xubinux%2Fxbin-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xubinux%2Fxbin-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xubinux","download_url":"https://codeload.github.com/xubinux/xbin-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292042,"owners_count":22046426,"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":["activemq","b2c","dubbox","fastdfs","mybatis","redis","solr","spring","spring-mvc","xbin-store","zookeeper"],"created_at":"2024-09-24T14:06:29.263Z","updated_at":"2025-05-15T07:06:09.371Z","avatar_url":"https://github.com/xubinux.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## xbin-store\n[![License](https://img.shields.io/badge/license-GPL-blue.svg)](LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/xubinux/xbin-store.svg?style=social\u0026label=Stars)](https://github.com/xubinux/xbin-store)[![GitHub forks](https://img.shields.io/github/forks/xubinux/xbin-store.svg?style=social\u0026label=Fork)](https://github.com/xubinux/xbin-store)\n\n模仿国内知名B2C网站,实现的一个分布式B2C商城\n\n进群讨论 群 626068936 \n\nDubbox 版本:\n\n* GitHub 地址 : https://github.com/xubinux/xbin-store\n* OSChina 地址 : http://git.oschina.net/binu/xbin-store\n\nSpring Cloud 版本:\n\n* GitHub 地址 : https://github.com/xubinux/xbin-store-cloud\n* OSChina 地址 : http://git.oschina.net/binu/xbin-store-cloud\n\n\n使用技术:\n\n* 后台\n\t* 使用`Spring Boot` 构建整个项目 去除 XML 配置\n\t* `Maven`构建项目\n\t* `Jenkins`作为持续集成\n\t* 采用`Dubbox`作为RPC框架\n\t* `kryo`序列化\n\t* 使用 `Apollo` 配置中心\n\t* 使用`Spring`+`Spring MVC`+`MyBatis`SSM框架\n\t* 数据库连接池使用`druid`\n\t* 数据库使用`MySQL`和`Redis`\n\t* 页面引擎采用 `Beetl`\n\t* 网页采用`freemarker`生成静态化页面\n\t* 存储采用`FastDFS`存储图片等文件\n\t* 采用`Solr`实现搜索服务\n\t* `Swagger2` 生成 RESTful Apis文档\n\t* 负载均衡使用`Nginx`、`keepalived`实现高可用\n\t* 采用`Spring Scheduled`做任务调度\n\t* 消息中间件采用`RabbitMQ`\n\t* 在分布式事务上则采用了[TCC](https://github.com/changmingxie/tcc-transaction)解决订单支付方面时效性要求性高的分布式事务,可靠的消息服务则来解决如会计记录等时效性要求低的分布式事务.\n* 前台\n\t* 采用基于[AdminLTE](https://github.com/almasaeed2010/AdminLTE)的[roncoo-adminLTE](https://github.com/roncoo/roncoo-adminLTE)(主要增加了Ajax的布局模式)\n\t* AdminLTE集成太多Js这里就不一一列举了\n\t\n## xbin-mobile 移动端\nhttp://git.oschina.net/orangehs/xbin-mobile\n\n\u003e 目前由 orange 开发,有兴趣可以联系\n\n## Pull Request\n内容可以是优化、新功能、Bug修复等。\n\n期待您的 `Pull Request`\n\n## 运行教程  \u003c----我是教程\n[点我查看运行教程(不使用Docker)](https://github.com/xubinux/xbin-store/wiki/Tutorial-(Not-Use-Docker))\n\n[点我查看运行教程(使用Docker 暂无!)](https://github.com/xubinux/xbin-store/wiki/Tutorial-(Not-Use-Docker))\n\n## Tomcat地址(本机)\n|名称|IP|完成情况|\n|:---------------:|:---------------:|:---------------:|\n| Portal  |192.168.125.1:8101 |[完成情况](https://github.com/xubinux/xbin-store/blob/master/xbin-store-web-portal/README.md)|\n| Search  |192.168.125.1:8102 |[完成情况](https://github.com/xubinux/xbin-store/blob/master/xbin-store-web-search/README.md)|\n| Item    |192.168.125.1:8103 |[完成情况](https://github.com/xubinux/xbin-store/blob/master/xbin-store-web-item/README.md)|\n| SSO     |192.168.125.1:8104 |[完成情况](https://github.com/xubinux/xbin-store/blob/master/xbin-store-web-sso/README.md)|\n| Admin   |192.168.125.1:8105 |[完成情况](https://github.com/xubinux/xbin-store/tree/master/xbin-store-web-admin/README.md)|\n| Cart    |192.168.125.1:8106 |[完成情况](https://github.com/xubinux/xbin-store/tree/master/xbin-store-web-cart/README.md)|\n| Order   |192.168.125.1:8107 |[完成情况](https://github.com/xubinux/xbin-store/blob/master/xbin-store-web-order/README.md)|\n| Recommended\t|192.168.125.1:8109 |\\|\n| AD    \t\t\t|192.168.125.1:8110 |\\|\n| Ranking     \t|192.168.125.1:8111 |\\|\n| Mymoney     \t|192.168.125.1:8112 |\\|\n| Pay     \t\t|192.168.125.1:8113 |\\|\n| Baitiao     \t|192.168.125.1:8114 |\\|\n| Coupons     \t|192.168.125.1:8115 |\\|\n| Seckill     \t|192.168.125.1:8116 |\\|\n| CS     \t\t\t|192.168.125.1:8117 |\\|\n| API    \t\t\t|192.168.125.1:8118 |\\|\n\n## Dubbox服务地址\n| 服务名称|Dubbox服务端口  |rest服务端口|\n|:---------------:|:---------------:|:---------------:|\n| Admin-Service      | 192.168.125.1:20880 |rest:8510 |\n| Redis-Service      | 192.168.125.1:20881 |rest:8511 |\n| Search-Service     | 192.168.125.1:20882 |rest:8512 |\n| Portal-Service     | 192.168.125.1:20883 |rest:8513 |\n| Item-Service       | 192.168.125.1:20884 |rest:8514 |\n| SSO-Service        | 192.168.125.1:20885 |rest:8515 |\n| Notify-Service     | 192.168.125.1:20886 |rest:8516 |\n| Cart-Service       | 192.168.125.1:20887 |rest:8517 |\n| Order-Service      | 192.168.125.1:20888 |rest:8518 |\n| Home\t-Service\t\t\t\t|192.168.125.1:20889 |rest:8519 |\n| Recommended-Service\t\t|192.168.125.1:20890 |rest:8520 |\n| AD-Service    \t\t\t|192.168.125.1:20891 |rest:8521 |\n| Ranking-Service     \t|192.168.125.1:20892 |rest:8522 |\n| Mymoney-Service     \t|192.168.125.1:20893 |rest:8523 |\n| Pay-Service     \t\t\t|192.168.125.1:20894 |rest:8524 |\n| Baitiao-Service     \t|192.168.125.1:20895 |rest:8525 |\n| Coupons-Service     \t|192.168.125.1:20896 |rest:8526 |\n| Seckill-Service     \t|192.168.125.1:20897 |rest:8527 |\n| CS-Service     \t\t\t|192.168.125.1:20898 |rest:8528 |\n\n## 项目依赖(暂时)\n![20170413149208646298768.png](http://on2bs9q7q.bkt.clouddn.com/20170413149208646298768.png)\n\n## 结构图(暂时)\n![20170407149155166510416.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/xbin-store.png)\n\n## 项目开发进度(暂时)\n![20170413149208582280568.jpg](http://on2bs9q7q.bkt.clouddn.com/20170413149208582280568.jpg)\n    \n## 实现目标\n\n本项目最终实现的目标 [点我查看最后完成效果](https://www.jd.com)\n\n## 运行截图\n![20170320148998263242121.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/首页.png)\n![20170320148998264384011.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/登录.png)\n![201703201489982653612.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/注册.png)\n![20170320148998266267017.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/搜索.png)\n![20170320148998269698649.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/商品详情.png)\n![20170320148998270641283.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/加入购物车.png)\n![20170320148998271738052.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/购物车.png)\n![20170320148998272353143.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/订单确认.png)\n![20170320148998273050196.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/结算页.png)\n![20170320148998275560672.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/后台.png)\n![20170320148998297295027.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/虚拟机.png)\n\n* Zookeeper1    提供服务:Zookeeper\n* FastDFS1        提供服务:FastDFS Tracker\n* FastDFS2        提供服务:FastDFS Storage\n* Redis         提供服务:Redis\n* Solr          提供服务:Solr\n\n## Dubbox Admin 服务使用情况\n![20170320148998294075274.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/Dubbox.png)\n\n## 任务管理器\n![20170320148998292034786.png](https://raw.githubusercontent.com/xubinux/xbin-store/master/Images/任务管理器.png)\n\n\u003e 启动了 5 台虚拟机＋ 7 台 Tomcat ＋ 9 个 Dubbox 服务 内存使用情况\n\n## 常见问题\n\n1. 编译失败\n\t\n\t编译不成功的都是缺少jar包 麻烦配置Nexus 然后更新整个项目去下载jar包 \n\t在继续编译 如还失败 **请查看本地maven仓库jar是否真正下载下来**\n\t\n2. 编译成功启动失败\n\n\t请确保你先启动了zookeeper 并且配置对了zookeeper地址 需要连接数据的请配置好数据密码\n\tservice服务有启动顺序 请查看项目依赖图 看看你需要启动的服务依赖那些服务 \n\t\n3. 启动不了\n\n\t90%是你的jar问题 \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxubinux%2Fxbin-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxubinux%2Fxbin-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxubinux%2Fxbin-store/lists"}