Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 9218a46

Browse files
authored
Merge pull request #565 from dotnet-architecture/xamarin-settings
Simplified the SettingsService in the mobile client.
2 parents 885703c + e519fbd commit 9218a46

File tree

156 files changed

+5859
-2379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+5859
-2379
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ hosts
1313
LICENSE
1414
*.testsettings
1515
vsts-docs
16+
test
1617
ServiceFabric
1718
readme
1819
k8s
@@ -29,4 +30,5 @@ cli-linux
2930
**/bower_components/
3031
**/wwwroot/lib/
3132
global.json
33+
**/appsettings.localhost.json
3234
src/Web/WebSPA/wwwroot/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,4 @@ pub/
260260
/src/Web/WebMVC/wwwroot/lib
261261
/src/Web/WebMVC/wwwroot/css/site.min.css
262262
**/.kube/**
263+
.mfractor

docker-compose.dcproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<DockerServiceName>webmvc</DockerServiceName>
88
<DockerTargetOS>Linux</DockerTargetOS>
99
<ProjectVersion>2.1</ProjectVersion>
10+
<DockerLaunchAction>LaunchBrowser</DockerLaunchAction>
1011
</PropertyGroup>
1112
<ItemGroup>
1213
<None Include=".dockerignore" />

docker-compose.override.yml

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ services:
5757
- MarketingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
5858
- BasketApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
5959
- OrderingApiClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
60+
- MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
61+
- WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5121
6062
- UseCustomizationData=True
6163
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
6264
- OrchestratorType=${ORCHESTRATOR_TYPE}
@@ -83,24 +85,6 @@ services:
8385
ports:
8486
- "5102:80"
8587

86-
ordering.backgroundtasks:
87-
environment:
88-
- ASPNETCORE_ENVIRONMENT=Development
89-
- ASPNETCORE_URLS=http://0.0.0.0:80
90-
- ConnectionString=${ESHOP_AZURE_ORDERING_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word}
91-
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
92-
- EventBusUserName=${ESHOP_SERVICE_BUS_USERNAME}
93-
- EventBusPassword=${ESHOP_SERVICE_BUS_PASSWORD}
94-
- UseCustomizationData=True
95-
- AzureServiceBusEnabled=False
96-
- CheckUpdateTime=30000
97-
- GracePeriodTime=1
98-
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
99-
- OrchestratorType=${ORCHESTRATOR_TYPE}
100-
- UseLoadTest=${USE_LOADTEST:-False}
101-
ports:
102-
- "5111:80"
103-
10488
marketing.api:
10589
environment:
10690
- ASPNETCORE_ENVIRONMENT=Development
@@ -129,12 +113,9 @@ services:
129113
environment:
130114
- ASPNETCORE_ENVIRONMENT=Development
131115
- ASPNETCORE_URLS=http://0.0.0.0:80
132-
- CatalogUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5101
133-
- OrderingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5102
134116
- IdentityUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
135-
- BasketUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5103
136-
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5110
137-
- LocationsUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5109
117+
- PurchaseUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5202
118+
- MarketingUrl=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5203
138119
- CatalogUrlHC=http://catalog.api/hc
139120
- OrderingUrlHC=http://ordering.api/hc
140121
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
@@ -151,12 +132,9 @@ services:
151132
environment:
152133
- ASPNETCORE_ENVIRONMENT=Development
153134
- ASPNETCORE_URLS=http://0.0.0.0:80
154-
- CatalogUrl=http://catalog.api
155-
- OrderingUrl=http://ordering.api
156-
- BasketUrl=http://basket.api
157-
- LocationsUrl=http://locations.api
135+
- PurchaseUrl=http://webshoppingapigw
158136
- IdentityUrl=http://10.0.75.1:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
159-
- MarketingUrl=http://marketing.api
137+
- MarketingUrl=http://webmarketingapigw
160138
- CatalogUrlHC=http://catalog.api/hc
161139
- OrderingUrlHC=http://ordering.api/hc
162140
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
@@ -239,3 +217,58 @@ services:
239217
- "15672:15672"
240218
- "5672:5672"
241219

220+
mobileshoppingapigw:
221+
environment:
222+
- ASPNETCORE_ENVIRONMENT=Development
223+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
224+
ports:
225+
- "5200:80"
226+
volumes:
227+
- ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration
228+
229+
mobilemarketingapigw:
230+
environment:
231+
- ASPNETCORE_ENVIRONMENT=Development
232+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
233+
ports:
234+
- "5201:80"
235+
volumes:
236+
- ./src/ApiGateways/Mobile.Bff.Marketing/apigw:/app/configuration
237+
238+
webshoppingapigw:
239+
environment:
240+
- ASPNETCORE_ENVIRONMENT=Development
241+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
242+
ports:
243+
- "5202:80"
244+
volumes:
245+
- ./src/ApiGateways/Web.Bff.Shopping/apigw:/app/configuration
246+
247+
webmarketingapigw:
248+
environment:
249+
- ASPNETCORE_ENVIRONMENT=Development
250+
- IdentityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
251+
ports:
252+
- "5203:80"
253+
volumes:
254+
- ./src/ApiGateways/Web.Bff.Marketing/apigw:/app/configuration
255+
256+
mobileshoppingagg:
257+
environment:
258+
- ASPNETCORE_ENVIRONMENT=Development
259+
- urls__basket=http://basket.api
260+
- urls__catalog=http://catalog.api
261+
- urls__orders=http://ordering.api
262+
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
263+
ports:
264+
- "5120:80"
265+
266+
webshoppingagg:
267+
environment:
268+
- ASPNETCORE_ENVIRONMENT=Development
269+
- urls__basket=http://basket.api
270+
- urls__catalog=http://catalog.api
271+
- urls__orders=http://ordering.api
272+
- urls__identity=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5110.
273+
ports:
274+
- "5121:80"

docker-compose.prod.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ services:
6464
- MarketingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5110
6565
- BasketApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5103
6666
- OrderingApiClient=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5102
67+
- MobileShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
68+
- WebShoppingAggClient=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5120
6769
- UseCustomizationData=True
6870
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
6971
- OrchestratorType=${ORCHESTRATOR_TYPE}
@@ -156,17 +158,16 @@ services:
156158

157159
webmvc:
158160
environment:
161+
159162
- ASPNETCORE_ENVIRONMENT=Development
160163
- ASPNETCORE_URLS=http://0.0.0.0:80
161-
- CatalogUrl=http://catalog.api
162-
- OrderingUrl=http://ordering.api
163-
- BasketUrl=http://basket.api
164+
- PurchaseUrl=http://webshoppingapigw/shopping
164165
- LocationsUrl=http://locations.api
165-
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 #Local: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. #Remote: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
166-
- MarketingUrl=http://marketing.api
166+
- IdentityUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5105 # Local Mac: Use http://docker.for.mac.localhost:5105 || Local Windows: Use 10.0.75.1 in a "Docker for Windows" environment, if using "localhost" from browser. || #Remote access: Use ${ESHOP_EXTERNAL_DNS_NAME_OR_IP} if using external IP or DNS name from browser.
167+
- MarketingUrl=http://marketing.api
167168
- CatalogUrlHC=http://catalog.api/hc
168169
- OrderingUrlHC=http://ordering.api/hc
169-
- IdentityUrlHC=http://identity.api/hc
170+
- IdentityUrlHC=http://identity.api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
170171
- BasketUrlHC=http://basket.api/hc
171172
- MarketingUrlHC=http://marketing.api/hc
172173
- PaymentUrlHC=http://payment.api/hc

docker-compose.yml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ services:
3838
- sql.data
3939
- rabbitmq
4040

41-
ordering.backgroundtasks:
42-
image: eshop/ordering.backgroundtasks:${TAG:-latest}
43-
build:
44-
context: .
45-
dockerfile: src/Services/Ordering/Ordering.BackgroundTasks/Dockerfile
46-
depends_on:
47-
- sql.data
48-
- rabbitmq
49-
5041
marketing.api:
5142
image: eshop/marketing.api:${TAG:-latest}
5243
build:
@@ -115,4 +106,41 @@ services:
115106
image: redis:alpine
116107

117108
rabbitmq:
118-
image: rabbitmq:3-management-alpine
109+
image: rabbitmq:3-management-alpine
110+
111+
mobileshoppingapigw:
112+
image: eshop/ocelotapigw-ms:${TAG:-latest}
113+
build:
114+
context: .
115+
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
116+
117+
mobilemarketingapigw:
118+
image: eshop/ocelotapigw-mm:${TAG:-latest}
119+
build:
120+
context: .
121+
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile2
122+
123+
webshoppingapigw:
124+
image: eshop/ocelotapigw-ws:${TAG:-latest}
125+
build:
126+
context: .
127+
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile3
128+
129+
webmarketingapigw:
130+
image: eshop/ocelotapigw-wm:${TAG:-latest}
131+
build:
132+
context: .
133+
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
134+
135+
mobileshoppingagg:
136+
image: eshop/mobileshoppingagg:${TAG:-latest}
137+
build:
138+
context: .
139+
dockerfile: src/ApiGateways/Mobile.Bff.Shopping/aggregator/Dockerfile
140+
141+
webshoppingagg:
142+
image: eshop/webshoppingagg:${TAG:-latest}
143+
build:
144+
context: .
145+
dockerfile: src/ApiGateways/Web.Bff.Shopping/aggregator/Dockerfile
146+

0 commit comments

Comments
 (0)