# fx **Repository Path**: fxsea/fx ## Basic Information - **Project Name**: fx - **Description**: No description available - **Primary Language**: Java - **License**: AFL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fx #### 介绍 基于 Spring Cloud Greenwich 、Spring Security OAuth2 的RBAC权限管理系统 #### Spring Cloud 核心子项目 - Spring Cloud Netflix:核心组件,可以对多个Netflix OSS开源套件进行整合,包括以下几个组件: - Eureka:服务治理组件,包含服务注册与发现 - Hystrix:容错管理组件,实现了熔断器 - Ribbon:客户端负载均衡的服务调用组件 - Feign:基于Ribbon和Hystrix的声明式服务调用组件 - Zuul:网关组件,提供智能路由、访问过滤等功能 - Archaius:外部化配置组件 - Spring Cloud Config:配置管理工具,实现应用配置的外部化存储,支持客户端配置信息刷新、加密/解密配置内容等 - Spring Cloud Bus:事件、消息总线,用于传播集群中的状态变化或事件,以及触发后续的处理 - Spring Cloud Security:基于spring security的安全工具包,为我们的应用程序添加安全控制 #### 模块介绍 ###### 看到开口道 #### 开发环境 - 操作系统:MacOS High Sierra - 开发工具:Intellij IDEA - 数据库:MySQL 8.0.13 - Java SDK:Oracle JDK 1.8 #### 部署环境 - 操作系统:Linux Ubuntu Server 16.04 X64 - 虚拟化技术:VMware + Docker #### 项目管理工具 - 项目构建:Maven + Nexus - 代码管理:Git + Gitee - 镜像管理:Docker Registry #### 后台主要技术栈 - 核心框架:Spring Boot + Spring Cloud - ORM 框架:mybatis-plus 简化 MyBatis 开发 - 数据库连接池:Alibaba Druid - 数据库缓存:Redis Sentinel - 消息中间件:RocketMQ - 全文检索引擎:ElasticSearch - 分布式链路追踪:SkyWalking - 分布式文件系统:Alibaba OSS - 分布式系统网关:Spring Cloud Gateway - 分布式协调系统:Spring Cloud Alibaba Nacos Server - 分布式配置中心:Spring Cloud Alibaba Nacos Config - 分布式熔断降级:Spring Cloud Alibaba Sentinel - 反向代理负载均衡:Nginx #### 前后分离 - 前端框架:NodeJS + Vue + Axios - 前端模板:ElementUI #### 持续集成 - 持续集成:GitLab - 持续交付:Jenkins #### 服务规划 Cloud |服务名称|服务端口 |服务说明| |--- |---|---| | MySQL | 192.168.10.150:3306 | MySQL 8.x,1G | | GitLab | 192.168.10.132:8080| 代码托管/持续集成,2G | | Nexus | 192.168.10.146:8081| 依赖管理,2G | | Docker Registry | 192.168.10.139:8080| 镜像管理,1G | | Jenkins | 192.168.10.135:8080| 持续交付,1G | | SkyWalking | 192.168.10.148:8080| 链路追踪,2G| | RocketMQ | 192.168.10.149:8080| 消息队列,2G | | | | 以下四个服务在在同一台服务器,4G | | Nacos | 192.168.10.151:8848| 注册发现/配置中心 | | Sentinel | 192.168.10.151:8080| 熔断降级 | | Redis | 192.168.10.151:26379| 数据缓存 | | Nginx | 192.168.10.151:80| 反向代理/负载均衡 | Services | 服务名称 |服务端口|服务说明| |---|---|---| | 以下为通用服务 | | | | fx-service-gateway | 9000 | 服务网关 | | fx-service-reg | 9501 | 用户注册 | | fx-service-sso | 9502 | 单点登录 | | fx-service-cache | 9503 | 缓存服务 | | fx-service-oss | 9504 | 文件上传 | | fx-service-search | 9505 | 全文检索 | | fx-service-email | 9506 | 邮件服务 | | 以下为服务提供者 | | | | fx-service-provider-content-category| 10101 | 内容分类提供者 | | fx-service-provider-content | 10102 | 内容服务提供者 | | fx-service-provider-item-cat | 10103 | 商品分类提供者 | | fx-service-provider-item-desc | 10104 | 商品详情提供者 | | 以下为服务消费者 | | | | fx-service-consumer-content-category| 10201 | 内容分类消费者 | | fx-service-consumer-content | 10202 | 内容服务消费者 | | fx-service-consumer-item-cat | 10203 | 商品分类消费者 | | fx-service-consumer-item-desc | 10204 | 商品详情消费者 | Frontend |服务名称|服务端口 |服务说明| |--- |---|---| | vue-admin | 9528 | 管理后台 | #### 规范 ##### 项目工程规范 [项目工程规范可参考](https://gitee.com/zuihou111/zuihou-admin-cloud) - 业务模块接口层命名为项目-业务-api,如zuihou-admin-api - 业务模块业务层命名为项目-业务-repository,如zuihou-admin-repository - 业务模块容器命名为项目-业务-server,如zuihou-admin-server