A Service Fabric sample with a Frontend, one API Gateway and 52abp Microservices
基于Service fabric + Ocelot + Identity Server4 + 52ABP 的案例展现前端
仓库地址信息:https://github.com/geffzhang/NanoFabric-ServiceFabric
本案例是由张善友,staneee,梁桐铭 共同协做打造
基于Service fabric + Ocelot + Identity Server4 + 52ABP 的案例展现git
https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-overview
以上为 基础内容github
ServiceFabric App,可理解为其他全部项目的启动引导
IdentityServer4 Server
API网关
default values api IdentityServer4 Client:default.client
52ABP API Host,无状态服务,端口10090 IdentityServer4 Client:52abp.client
52abp前端计算静态站点,无状态服务,端口10091 运行程序前,使用命令行打开此路径 一、输入 npm install 还原依赖 或 输入 yarn 进行还原依赖 二、还原成功后,输入 npm run build 打包
测试的控制台程序
* 此目录下为 ServiceOAuth 和 LTMCompanyNameFree.YoyoCmsTemplate.Web.Host的依赖 * ServiceOAuth 依赖于 52ABP 的 User 和登录等等,其他都不依赖,只是为了临时使用方便 * LTMCompanyNameFree.YoyoCmsTemplate.Web.Host 依赖全部,并提供全部api
一、 启动 Service fabric local cluster manager ,保证本地集群是打开的状态。
二、 打开NanoFabric-ServiceFabric.sln
解决方案,须要使用管理员权限这点很重要,不然报错。
三、 默认生成数据库内容,LTMCompanyNameFree.YoyoCmsTemplate.Migrator
启动迁移文件工具,生成数据库。
四、52abp前端计算静态站点,无状态服务,端口10091 运行程序前,使用命令行打开此路径,
须要编译前端包,打开ClientApp
而后运行web
一、输入 npm install 还原依赖 或 输入 yarn 进行还原依赖 二、还原成功后,输入 npm run build 打包
五、设置NanoFabric_ServiceFabric
为默认启动项目,而后启动它。
数据库
六、启动成功,访问 http://localhost:10091npm
## PS: 帐号和密码
默认帐号:Admin
默认密码:123qweapi