GithubHelp home page GithubHelp logo

lvtao2415 / nanofabric-servicefabric Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geffzhang/nanofabric-servicefabric

0.0 1.0 0.0 10.62 MB

A Service Fabric sample with a Frontend, one Identity Sevice,one API Gateway and three ABP Microservices

PowerShell 1.17% C# 53.43% JavaScript 1.77% CSS 1.60% Dockerfile 0.10% HTML 10.60% TypeScript 31.33% Batchfile 0.01%

nanofabric-servicefabric's Introduction

NanoFabric-ServiceFabric 操作手册

service-fabric-52abp-ocelot

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 的案例展示

关于service farbic的基础部分参考

https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-overview 以上为 基础内容

解决方案内项目说明

项目截图.png

1 Service Fabric Application -> NanoFabric_ServiceFabric

ServiceFabric App,可理解为其余所有项目的启动引导

2 IdentityServer 4 -> ServiceOAuth

IdentityServer4 Server

3 Gateway (Ocelot) -> Gateway

API网关

4 Microservices -> 01 - ServiceA -> ServiceA

default values api
IdentityServer4 Client:default.client

5 Frontend(52ABP) -> LTMCompanyNameFree.YoyoCmsTemplate.Web.Host

52ABP API Host,无状态服务,端口10090
IdentityServer4 Client:52abp.client

5 Frontend(52ABP) -> SPAHost

52abp前端计算静态站点,无状态服务,端口10091
运行程序前,使用命令行打开此路径
1、输入 npm install 还原依赖  或  输入 yarn 进行还原依赖
2、还原成功后,输入 npm run build 打包

5 Frontend(52ABP) -> FrontendConsoleApp

测试的控制台程序

5 Frontend(52ABP) -> 52ABP -> All

* 此目录下为 ServiceOAuth 和 LTMCompanyNameFree.YoyoCmsTemplate.Web.Host的依赖

* ServiceOAuth 依赖于 52ABP 的 User 和登陆等等,其余都不依赖,只是为了临时使用方便

* LTMCompanyNameFree.YoyoCmsTemplate.Web.Host 依赖所有,并提供所有api

本地启动项目操作说明

1、 启动 Service fabric local cluster manager ,保证本地集群是打开的状态。 image.png

2、 打开NanoFabric-ServiceFabric.sln解决方案,需要使用管理员权限这点很重要,否则报错。

3、 默认生成数据库内容,LTMCompanyNameFree.YoyoCmsTemplate.Migrator启动迁移文件工具,生成数据库。 image.png

4、52abp前端计算静态站点,无状态服务,端口10091 运行程序前,使用命令行打开此路径, 需要编译前端包,打开ClientApp然后运行

1、输入 npm install 还原依赖  或  输入 yarn 进行还原依赖
2、还原成功后,输入 npm run build 打包

5、设置NanoFabric_ServiceFabric 为默认启动项目,然后启动它。

image.png

6、启动成功,访问 http://localhost:10091

调用的是ocelot的网关

PS: 账号和密码

默认账号:Admin 默认密码:123qwe

nanofabric-servicefabric's People

Contributors

ltm0203 avatar geffzhang avatar staneee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.