Skip to content

Commit 9f44c0c

Browse files
committed
#63 simplify bicep
1 parent a94484b commit 9f44c0c

File tree

5 files changed

+199
-174
lines changed

5 files changed

+199
-174
lines changed

NET6.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
# APIs
28

39
## Inventory (Rust)
@@ -82,4 +88,39 @@
8288
> dotnet dev-certs https -ep aspnetapp.pfx -p P@ssw0rd # then save it to %USERPROFILE%\.aspnet\https
8389
> dotnet dev-certs https --trust
8490
> 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+
```

deploys/bicep/dapr.bicep

-74
This file was deleted.

deploys/bicep/idp_web.bicep

-96
This file was deleted.

0 commit comments

Comments
 (0)