-
Notifications
You must be signed in to change notification settings - Fork 11
/
Notes.txt
62 lines (36 loc) · 2.35 KB
/
Notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
***************************************************************
Dapr Commands:
***************************************************************
dapr run --app-id products-api --app-port 5001 --log-level debug `
--components-path .\components --config .\components\simplestore-dapr-config.yaml `
dotnet run dotnet -- -p src\Services\ProductCatalog\SimpleStore.ProductCatalogApi
dapr run --app-id inventories-api --app-port 5002 --log-level debug `
--components-path .\components --config .\components\simplestore-dapr-config.yaml `
dotnet run dotnet -- -p src\Services\Inventories\SimpleStore.InventoriesApi
dapr run --app-id graphql-api --app-port 5000 --log-level debug `
--components-path .\components --config .\components\simplestore-dapr-config.yaml `
dotnet run dotnet -- -p src\Services\GraphQL\SimpleStore.GraphQLApi
***************************************************************
EntityFramework Commands:
***************************************************************
1. ProductCatalog
- Use with PackageManger Console
Add-Migration [Migration-Name] -Project src\Services\ProductCatalog\SimpleStore.ProductCatalog.Infrastructure.EfCore -StartupProject src\Services\ProductCatalog\SimpleStore.ProductCatalogApi
- Use with dotnet ef tool
dotnet ef migrations add [Migration-Name] `
--project src\Services\ProductCatalog\SimpleStore.ProductCatalog.Infrastructure.EfCore `
--startup-project src\Services\ProductCatalog\SimpleStore.ProductCatalogApi
2. Inventories
- Use with PackageManger Console
Add-Migration [Migration-Name] -Project src\Services\Inventories\SimpleStore.Inventories.Infrastructure.EfCore -StartupProject src\Services\Inventories\SimpleStore.InventoriesApi
- Use with dotnet ef tool
dotnet ef migrations add [Migration-Name] -v `
--project src\Services\Inventories\SimpleStore.Inventories.Infrastructure.EfCore `
--startup-project src\Services\Inventories\SimpleStore.InventoriesApi `
***************************************************************
Docker Commands:
***************************************************************
1. Remove un-tagged images
docker images | ConvertFrom-String | where {$_.P2 -eq "<none>"} | % { docker rmi $_.P3 -f}
2. Remove all images of **simplestore**
docker images --format "{{.ID}}\t{{.Repository}}" | ConvertFrom-String | where { $_.P2 -match 'simplestore-' } | % { docker rmi $_.P1 }