File tree 5 files changed +199
-174
lines changed
5 files changed +199
-174
lines changed Original file line number Diff line number Diff line change
1
+ # TODO
2
+ 1 . update refresh token flow in webapi, hard code now
3
+ 2 . error when do checkout, double-check for saleapp
4
+ 3 . scale rule with http concurrency (10)
5
+ 4 . Traffic spliting (modify web to add rating and split traffic 50/50)
6
+
1
7
# APIs
2
8
3
9
## Inventory (Rust)
82
88
> dotnet dev-certs https -ep aspnetapp.pfx -p P@ssw0rd # then save it to %USERPROFILE%\.aspnet\https
83
89
> dotnet dev-certs https --trust
84
90
> docker compose up
85
- ```
91
+ ```
92
+
93
+ # Get starting
94
+
95
+ ``` powershell
96
+ > $rgName="coolstore-rg"
97
+ > $location="eastus"
98
+ ```
99
+
100
+ ``` powershell
101
+ > az group create -n $rgName -l $location
102
+ ```
103
+
104
+ ``` powershell
105
+ > az deployment group create `
106
+ --resource-group $rgName `
107
+ --template-file core.bicep `
108
+ --parameters `
109
+ inventoryPostgresHost='<inventory postgres db>' `
110
+ productCategoryPostgresHost='<product catalog postgres db>' `
111
+ postgresDbPassword='<postgres password>' `
112
+ redisConnection='<full redis connection string>' `
113
+ redisHost='<redis host>' `
114
+ redisPassword='<redis password>'
115
+ ```
116
+
117
+ ``` powershell
118
+ > az containerapp update `
119
+ --name webapigatewayapp `
120
+ --resource-group $rgName `
121
+ --set-env-vars 'OpenIdConnect__Authority=https://<identityapp url>' 'ReverseProxy__Clusters__appCluster__Destinations__destination1__Address=https://<webapp url>'
122
+ ```
123
+
124
+ ``` powershell
125
+ > az group delete -n $rgName
126
+ ```
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments