Service-fabric-52abp-ocelot
A service fabric sample with a frontend, one API gateway and 52abp microservices
Case study based on service fabric + ocelot + identity server4 + 52abp
Warehouse address: https://github.com/geffzhang/NanoFabric-ServiceFabric
This case is jointly developed by Zhang Shanyou, staneee, and Liang Tongming.
Case study based on service fabric + ocelot + identity server4 + 52abp
Basic Service farbic reference
Https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-overview
The above is the basic content
Project Description in Solution
1 service fabric application-> nanofabric_servicefabric
Servicefabric app, which can be understood as startup guide for all other projects
2 identityserver 4-> serviceoauth
Identityserver4 Server
3 Gateway (ocelot)-> Gateway
API Gateway
4. microservices-> 01-servicea-> servicea
Default values apiidentityserver4 client: Default. Client
5 frontend (52abp)-> ltmcompanynamefree. yoyocmstemplate. Web. Host
52abp API host, stateless service, port 10090identityserver4 client: 52abp. Client
5 frontend (52abp)-> spahost
52abcfront-end static computing site, stateless service, before running the program on port 10091, use the command line to open this path 1. Enter NPM install to restore the dependency or enter yarn to restore the dependency 2. After the restoration is successful, enter NPM run build to package
5 frontend (52abp)-> frontendconsoleapp
Console program to be tested
5 frontend (52abp)-> 52abp-> All
* Serviceoauth and ltmcompanynamefree under this directory. yoyocmstemplate. web. the host dependency * serviceoauth depends on the user and login of 52abc, and the rest are independent, just for temporary convenience * ltmcompanynamefree. yoyocmstemplate. web. host depends on all and provides all APIs
Local startup project operation instructions
1. Start Service fabric local cluster manager to ensure that the local cluster is open.
2. OpenNanoFabric-ServiceFabric.sln
Solution,Administrator privilege requiredThis is important; otherwise, an error is reported.
3. The database content is generated by default,Ltmcompanynamefree. yoyocmstemplate. migrator
Start the migration file tool to generate a database.
4. Run the command line to open the static site on the front-end of the 52abc server and the stateless service. Before running the program on port 10091, run the command line command to open the path,
You need to compile the front-end package and openClientapp
Then run
1. Enter NPM install to restore the dependency or yarn to restore the dependency. 2. After the restoration is successful, enter NPM run build to package
5. SettingsNanofabric_servicefabric
Start the project by default, and then start it.
6. After successful startup, access http: // localhost: 10091
# Ps: account and password
Default Account: Admin
Default password: 123qwe
Nanofabric-servicefabric Operation Manual