# Rex.ShopMicroService.Sample
**Repository Path**: dw12/Rex.ShopMicroService.Sample
## Basic Information
- **Project Name**: Rex.ShopMicroService.Sample
- **Description**: 一个基于ABP Framework 8.x、Mysql、MongoDB、Redis、RabbitMQ、CAP、ElasticSearch、Minio、YARP的微服务电商商城平台,采用主流的互联网技术架构、全新的UI设计、可视化布局、支持集群部署;拥有活动促销、优惠卷、商品秒杀等众多完整的营销功能。
- **Primary Language**: C#
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 11
- **Created**: 2025-11-13
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

一个基于ABP Framework、PostgreSQL、MongoDB、Redis、RabbitMQ、CAP、ElasticSearch、Minio、YARP的微服务电商商城平台,采用主流的互联网技术架构、全新的UI设计、可视化布局、支持集群部署;拥有活动促销、优惠卷、商品秒杀等众多完整的营销功能,代码完全开源,没有任何二次封装,是一个非常适合二次开发的电商平台案例。
## 📚前言
本商城致力于为中大型企业打造一个功能完整、易于维护的微服务电商商城平台,采用主流微服务技术实现;后台管理系统包含系统管理、权限管理、会员管理、商品管理、订单管理、运营管理、促销管理、财务管理等模块。
## ⛵目录结构
```
Rex.ShopMicroService.Sample
├─00.Core -- 公共模块核心(公共中的公共代码)
├─01.App -- 应用端
│ ├─Rex.App.UniApp -- 小程序客户端
│ ├─Rex.App.WebAdmin -- 后台管理端
├─02.Gateways -- 网关
│ ├─Rex.Shop.WebGateway -- 后台网关
│ ├─Rex.Shop.WebPublicGateway -- 前台(公共)网关
├─03.AggregationServices -- 聚合服务
│ ├─Rex.BackendAggregationService -- 后台聚合服务
│ ├─Rex.FrontAggregationService -- 前台聚合服务
├─04.MicroServices -- 商品微服务
│ ├─Rex.AuthService.HttpApi.Host -- 认证授权服务
│ ├─Rex.BaseService.HttpApi.Host -- 基础服务(用户、角色、菜单、设置等)
│ ├─Rex.GoodService.HttpApi.Host -- 商品服务
│ ├─Rex.OrderService.HttpApi.Host -- 订单服务
│ ├─Rex.PaymentService.HttpApi.Host -- 支付服务
│ ├─Rex.PromotionService.HttpApi.Host -- 活动促销服务
│ ├─Rex.ShopService.AppHost -- Aspire🚀启动枢纽(编排中心)
├─05.Modules -- 模块层
│ ├─Rex.AuthService -- 认证授权模块
│ ├─Rex.BaseService -- 基础服务模块
│ ├─Rex.GoodService -- 商品模块
│ ├─Rex.OrderService -- 订单模块
│ ├─Rex.PaymentService -- 支付模块
│ ├─Rex.PromotionService -- 促销模块
```
## 🚧技术选型

## 🌈系统架构图

## 🌐快速开始
### 1.环境准备
- Visual Studio 2026
- Visual Studio Code
- .NET 10 SDK
- Docker Desktop
Windows/MacOS 需安装并启动(Windows推荐开启WSL2)
- HBuilder X
- 微信开发者工具
### 2.项目运行
```
# 克隆项目
git clone https://github.com/zhuyongzhengs/Rex.ShopMicroService.Sample.git
# 使用 Visual Studio 2026 打开解决方案
将所需的NuGet包还原,确保生成不会出错。
# 将 Rex.ShopService.AppHost 设置为启动项目
按 F5 运行项目(启动时会拉取PostgreSQL、Redis、RabbitMQ、MongoDB等镜像,如无法拉取,可采取`魔法`或其它方式进行加速),启动成功之后会自动打开 Aspire Dashboard,您可以看到所需的中间件以及微服务运行状态。
提示:小程序(微信)端建议使用 HBuilder X 打开运行。
```
### 3.商城服务访问地址
| 服务 | 地址 |
| -------------------------------------- | ---------------------- |
| Rex.Shop.WebGateway 后台网关 | https://localhost:4444 |
| Rex.Shop.WebPublicGateway 公共网关 | https://localhost:4433 |
| Rex.BackendAggregationService 后台聚合服务 | https://localhost:4410 |
| Rex.FrontAggregationService 前台聚合服务 | https://localhost:4420 |
| Rex.AuthService.HttpApi.Host 认证授权服务 | https://localhost:4466 |
| Rex.BaseService.HttpApi.Host 基础服务 | https://localhost:4455 |
| Rex.GoodService.HttpApi.Host 商品服务 | https://localhost:4477 |
| Rex.OrderService.HttpApi.Host 订单服务 | https://localhost:5500 |
| Rex.PaymentService.HttpApi.Host 支付服务 | https://localhost:5510 |
| Rex.PromotionService.HttpApi.Host 促销服务 | https://localhost:4488 |
| Rex.App.WebAdmin 商城后台管理平台 | http://localhost:5120 |
| Rex.App.UniApp H5/小程序 | http://localhost:5130 |
在 Aspire Dashboard 中也能看到哦~

## 👏代码运行相关截图
### 1.后台截图












### 2.小程序截图
## ❤️赞助与技术支持
### ⚡开源项目支持
Rex Shop 是一个完全免费开源的项目,允许商业用途。 如果这个项目帮助到了您,希望你可以去 [Gitee](https://gitee.com/zhuyongzhengs/Rex.ShopMicroService.Sample) 或 [Github](https://github.com/zhuyongzhengs/Rex.ShopMicroService.Sample) 帮我点个免费的 ⭐ Star,或者通过以下方式支持项目的持续发展,这将是对我极大的鼓励与支持。
### 💌赞助方式
**个人赞助**
* 支持项目持续更新和维护
* 推动新功能开发和性能优化
* 帮助建设更好的开发者社区
开源不易,可以请作者喝杯奶茶咩~
## 💕特别鸣谢
- ABP Framework
- vue-next-admin
- CoreShop