generator-codedesignplus 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/microservice/templates/microservice/charts/ms-archetype-grpc/Production.yaml +95 -0
- package/generators/microservice/templates/microservice/charts/ms-archetype-grpc/{values.yaml → Staging.yaml} +1 -0
- package/generators/microservice/templates/microservice/charts/ms-archetype-rest/Production.yaml +111 -0
- package/generators/microservice/templates/microservice/charts/ms-archetype-rest/{values.yaml → Staging.yaml} +2 -1
- package/generators/microservice/templates/microservice/charts/ms-archetype-worker/Production.yaml +95 -0
- package/generators/microservice/templates/microservice/charts/ms-archetype-worker/{values.yaml → Staging.yaml} +1 -0
- package/generators/microservice/templates/microservice/src/domain/CodeDesignPlus.Net.Microservice.Application/CodeDesignPlus.Net.Microservice.Application.csproj +5 -5
- package/generators/microservice/templates/microservice/src/domain/CodeDesignPlus.Net.Microservice.Domain/CodeDesignPlus.Net.Microservice.Domain.csproj +2 -2
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.AsyncWorker/CodeDesignPlus.Net.Microservice.AsyncWorker.csproj +8 -8
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.AsyncWorker/appsettings.Development.json +16 -0
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.AsyncWorker/appsettings.json +1 -1
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.Rest/CodeDesignPlus.Net.Microservice.Rest.csproj +8 -8
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.Rest/appsettings.Development.json +16 -0
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.Rest/appsettings.json +1 -1
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.gRpc/CodeDesignPlus.Net.Microservice.gRpc.csproj +9 -9
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.gRpc/appsettings.Development.json +16 -0
- package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.gRpc/appsettings.json +5 -1
- package/generators/microservice/templates/microservice/tests/integration/CodeDesignPlus.Net.Microservice.AsyncWorker.Test/CodeDesignPlus.Net.Microservice.AsyncWorker.Test.csproj +1 -1
- package/generators/microservice/templates/microservice/tests/integration/CodeDesignPlus.Net.Microservice.Rest.Test/CodeDesignPlus.Net.Microservice.Rest.Test.csproj +1 -1
- package/generators/microservice/templates/microservice/tests/integration/CodeDesignPlus.Net.Microservice.gRpc.Test/CodeDesignPlus.Net.Microservice.gRpc.Test.csproj +1 -1
- package/generators/microservice/templates/microservice/tests/unit/CodeDesignPlus.Net.Microservice.AsyncWorker.Test/CodeDesignPlus.Net.Microservice.AsyncWorker.Test.csproj +1 -1
- package/generators/microservice/templates/microservice/tests/unit/CodeDesignPlus.Net.Microservice.Default.Test/CodeDesignPlus.Net.Microservice.Default.Test.csproj +2 -2
- package/generators/microservice/templates/microservice/tests/unit/CodeDesignPlus.Net.Microservice.Rest.Test/CodeDesignPlus.Net.Microservice.Rest.Test.csproj +1 -1
- package/generators/microservice/templates/microservice/tests/unit/CodeDesignPlus.Net.Microservice.gRpc.Test/CodeDesignPlus.Net.Microservice.gRpc.Test.csproj +1 -1
- package/generators/microservice/templates/value-object/ItemValueObject.cs +4 -1
- package/package.json +1 -1
- package/generators/microservice/templates/microservice/.dockerignore +0 -30
- package/generators/microservice/templates/microservice/charts/ms-archetype-grpc/.helmignore +0 -23
- package/generators/microservice/templates/microservice/charts/ms-archetype-rest/.helmignore +0 -23
- package/generators/microservice/templates/microservice/charts/ms-archetype-worker/.helmignore +0 -23
- /package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.AsyncWorker/{appsettings.qa.json → appsettings.Staging.json} +0 -0
- /package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.Rest/{appsettings.qa.json → appsettings.Staging.json} +0 -0
- /package/generators/microservice/templates/microservice/src/entrypoints/CodeDesignPlus.Net.Microservice.gRpc/{appsettings.qa.json → appsettings.Staging.json} +0 -0
package/generators/microservice/templates/microservice/charts/ms-archetype-grpc/Production.yaml
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
ms-base:
|
|
2
|
+
environment: Production
|
|
3
|
+
replicaCount: 1
|
|
4
|
+
|
|
5
|
+
image:
|
|
6
|
+
repository: codedesignplus/ms-archetype-grpc
|
|
7
|
+
pullPolicy: IfNotPresent
|
|
8
|
+
tag: "v0.1.0-alpha.100"
|
|
9
|
+
|
|
10
|
+
imagePullSecrets: []
|
|
11
|
+
fullnameOverride: "ms-archetype-grpc"
|
|
12
|
+
nameOverride: "ms-archetype-grpc"
|
|
13
|
+
|
|
14
|
+
serviceAccount:
|
|
15
|
+
create: true
|
|
16
|
+
automount: true
|
|
17
|
+
annotations: {}
|
|
18
|
+
name: ""
|
|
19
|
+
|
|
20
|
+
podAnnotations: {}
|
|
21
|
+
podLabels: {}
|
|
22
|
+
podSecurityContext: {}
|
|
23
|
+
# fsGroup: 2000
|
|
24
|
+
|
|
25
|
+
securityContext: {}
|
|
26
|
+
# capabilities:
|
|
27
|
+
# drop:
|
|
28
|
+
# - ALL
|
|
29
|
+
# readOnlyRootFilesystem: true
|
|
30
|
+
# runAsNonRoot: true
|
|
31
|
+
# runAsUser: 1000
|
|
32
|
+
|
|
33
|
+
service:
|
|
34
|
+
type: ClusterIP
|
|
35
|
+
port: 5000
|
|
36
|
+
|
|
37
|
+
ingress:
|
|
38
|
+
enabled: false
|
|
39
|
+
className: ""
|
|
40
|
+
annotations: {}
|
|
41
|
+
# kubernetes.io/ingress.class: nginx
|
|
42
|
+
# kubernetes.io/tls-acme: "true"
|
|
43
|
+
hosts:
|
|
44
|
+
- host: services.codedesignplus.com
|
|
45
|
+
paths:
|
|
46
|
+
- path: /
|
|
47
|
+
pathType: ImplementationSpecific
|
|
48
|
+
tls: []
|
|
49
|
+
# - secretName: chart-example-tls
|
|
50
|
+
# hosts:
|
|
51
|
+
# - services.codedesignplus.com
|
|
52
|
+
|
|
53
|
+
resources: {}
|
|
54
|
+
# limits:
|
|
55
|
+
# cpu: 100m
|
|
56
|
+
# memory: 128Mi
|
|
57
|
+
# requests:
|
|
58
|
+
# cpu: 100m
|
|
59
|
+
# memory: 128Mi
|
|
60
|
+
|
|
61
|
+
livenessProbe:
|
|
62
|
+
httpGet:
|
|
63
|
+
path: /health/live
|
|
64
|
+
port: http
|
|
65
|
+
readinessProbe:
|
|
66
|
+
httpGet:
|
|
67
|
+
path: /health/ready
|
|
68
|
+
port: http
|
|
69
|
+
|
|
70
|
+
autoscaling:
|
|
71
|
+
enabled: false
|
|
72
|
+
minReplicas: 1
|
|
73
|
+
maxReplicas: 100
|
|
74
|
+
targetCPUUtilizationPercentage: 80
|
|
75
|
+
# targetMemoryUtilizationPercentage: 80
|
|
76
|
+
|
|
77
|
+
volumes: []
|
|
78
|
+
# - name: foo
|
|
79
|
+
# secret:
|
|
80
|
+
# secretName: mysecret
|
|
81
|
+
# optional: false
|
|
82
|
+
|
|
83
|
+
volumeMounts: []
|
|
84
|
+
# - name: foo
|
|
85
|
+
# mountPath: "/etc/foo"
|
|
86
|
+
# readOnly: true
|
|
87
|
+
|
|
88
|
+
nodeSelector: {}
|
|
89
|
+
|
|
90
|
+
tolerations: []
|
|
91
|
+
|
|
92
|
+
affinity: {}
|
|
93
|
+
|
|
94
|
+
virtualService:
|
|
95
|
+
create: false
|
package/generators/microservice/templates/microservice/charts/ms-archetype-rest/Production.yaml
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
ms-base:
|
|
2
|
+
environment: Production
|
|
3
|
+
replicaCount: 1
|
|
4
|
+
|
|
5
|
+
image:
|
|
6
|
+
repository: codedesignplus/ms-archetype-rest
|
|
7
|
+
pullPolicy: IfNotPresent
|
|
8
|
+
tag: "v0.1.0-alpha.100"
|
|
9
|
+
|
|
10
|
+
imagePullSecrets: []
|
|
11
|
+
fullnameOverride: "ms-archetype-rest"
|
|
12
|
+
nameOverride: "ms-archetype-rest"
|
|
13
|
+
|
|
14
|
+
serviceAccount:
|
|
15
|
+
create: true
|
|
16
|
+
automount: true
|
|
17
|
+
annotations: {}
|
|
18
|
+
name: ""
|
|
19
|
+
|
|
20
|
+
podAnnotations: {}
|
|
21
|
+
podLabels: {}
|
|
22
|
+
podSecurityContext: {}
|
|
23
|
+
# fsGroup: 2000
|
|
24
|
+
|
|
25
|
+
securityContext: {}
|
|
26
|
+
# capabilities:
|
|
27
|
+
# drop:
|
|
28
|
+
# - ALL
|
|
29
|
+
# readOnlyRootFilesystem: true
|
|
30
|
+
# runAsNonRoot: true
|
|
31
|
+
# runAsUser: 1000
|
|
32
|
+
|
|
33
|
+
service:
|
|
34
|
+
type: ClusterIP
|
|
35
|
+
port: 5000
|
|
36
|
+
|
|
37
|
+
ingress:
|
|
38
|
+
enabled: false
|
|
39
|
+
className: ""
|
|
40
|
+
annotations: {}
|
|
41
|
+
# kubernetes.io/ingress.class: nginx
|
|
42
|
+
# kubernetes.io/tls-acme: "true"
|
|
43
|
+
hosts:
|
|
44
|
+
- host: services.codedesignplus.com
|
|
45
|
+
paths:
|
|
46
|
+
- path: /
|
|
47
|
+
pathType: ImplementationSpecific
|
|
48
|
+
tls: []
|
|
49
|
+
# - secretName: chart-example-tls
|
|
50
|
+
# hosts:
|
|
51
|
+
# - services.codedesignplus.com
|
|
52
|
+
|
|
53
|
+
resources: {}
|
|
54
|
+
# limits:
|
|
55
|
+
# cpu: 100m
|
|
56
|
+
# memory: 128Mi
|
|
57
|
+
# requests:
|
|
58
|
+
# cpu: 100m
|
|
59
|
+
# memory: 128Mi
|
|
60
|
+
|
|
61
|
+
livenessProbe:
|
|
62
|
+
httpGet:
|
|
63
|
+
path: /health/live
|
|
64
|
+
port: http
|
|
65
|
+
readinessProbe:
|
|
66
|
+
httpGet:
|
|
67
|
+
path: /health/ready
|
|
68
|
+
port: http
|
|
69
|
+
|
|
70
|
+
autoscaling:
|
|
71
|
+
enabled: false
|
|
72
|
+
minReplicas: 1
|
|
73
|
+
maxReplicas: 100
|
|
74
|
+
targetCPUUtilizationPercentage: 80
|
|
75
|
+
# targetMemoryUtilizationPercentage: 80
|
|
76
|
+
|
|
77
|
+
volumes: []
|
|
78
|
+
# - name: foo
|
|
79
|
+
# secret:
|
|
80
|
+
# secretName: mysecret
|
|
81
|
+
# optional: false
|
|
82
|
+
|
|
83
|
+
volumeMounts: []
|
|
84
|
+
# - name: foo
|
|
85
|
+
# mountPath: "/etc/foo"
|
|
86
|
+
# readOnly: true
|
|
87
|
+
|
|
88
|
+
nodeSelector: {}
|
|
89
|
+
|
|
90
|
+
tolerations: []
|
|
91
|
+
|
|
92
|
+
affinity: {}
|
|
93
|
+
|
|
94
|
+
virtualService:
|
|
95
|
+
create: true
|
|
96
|
+
hosts:
|
|
97
|
+
- services.codedesignplus.com
|
|
98
|
+
gateways:
|
|
99
|
+
- istio-ingress/services-gateway
|
|
100
|
+
http:
|
|
101
|
+
- name: ms-archetype
|
|
102
|
+
match:
|
|
103
|
+
- uri:
|
|
104
|
+
prefix: /ms-archetype/
|
|
105
|
+
rewrite:
|
|
106
|
+
uri: /
|
|
107
|
+
route:
|
|
108
|
+
- destination:
|
|
109
|
+
host: ms-archetype-rest.default.svc.cluster.local
|
|
110
|
+
port:
|
|
111
|
+
number: 5000
|
package/generators/microservice/templates/microservice/charts/ms-archetype-worker/Production.yaml
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
ms-base:
|
|
2
|
+
environment: Production
|
|
3
|
+
replicaCount: 1
|
|
4
|
+
|
|
5
|
+
image:
|
|
6
|
+
repository: codedesignplus/ms-archetype-worker
|
|
7
|
+
pullPolicy: IfNotPresent
|
|
8
|
+
tag: "v0.1.0-alpha.100"
|
|
9
|
+
|
|
10
|
+
imagePullSecrets: []
|
|
11
|
+
fullnameOverride: "ms-archetype-worker"
|
|
12
|
+
nameOverride: "ms-archetype-worker"
|
|
13
|
+
|
|
14
|
+
serviceAccount:
|
|
15
|
+
create: true
|
|
16
|
+
automount: true
|
|
17
|
+
annotations: {}
|
|
18
|
+
name: ""
|
|
19
|
+
|
|
20
|
+
podAnnotations: {}
|
|
21
|
+
podLabels: {}
|
|
22
|
+
podSecurityContext: {}
|
|
23
|
+
# fsGroup: 2000
|
|
24
|
+
|
|
25
|
+
securityContext: {}
|
|
26
|
+
# capabilities:
|
|
27
|
+
# drop:
|
|
28
|
+
# - ALL
|
|
29
|
+
# readOnlyRootFilesystem: true
|
|
30
|
+
# runAsNonRoot: true
|
|
31
|
+
# runAsUser: 1000
|
|
32
|
+
|
|
33
|
+
service:
|
|
34
|
+
type: ClusterIP
|
|
35
|
+
port: 5000
|
|
36
|
+
|
|
37
|
+
ingress:
|
|
38
|
+
enabled: false
|
|
39
|
+
className: ""
|
|
40
|
+
annotations: {}
|
|
41
|
+
# kubernetes.io/ingress.class: nginx
|
|
42
|
+
# kubernetes.io/tls-acme: "true"
|
|
43
|
+
hosts:
|
|
44
|
+
- host: services.codedesignplus.com
|
|
45
|
+
paths:
|
|
46
|
+
- path: /
|
|
47
|
+
pathType: ImplementationSpecific
|
|
48
|
+
tls: []
|
|
49
|
+
# - secretName: chart-example-tls
|
|
50
|
+
# hosts:
|
|
51
|
+
# - services.codedesignplus.com
|
|
52
|
+
|
|
53
|
+
resources: {}
|
|
54
|
+
# limits:
|
|
55
|
+
# cpu: 100m
|
|
56
|
+
# memory: 128Mi
|
|
57
|
+
# requests:
|
|
58
|
+
# cpu: 100m
|
|
59
|
+
# memory: 128Mi
|
|
60
|
+
|
|
61
|
+
livenessProbe:
|
|
62
|
+
httpGet:
|
|
63
|
+
path: /health/live
|
|
64
|
+
port: http
|
|
65
|
+
readinessProbe:
|
|
66
|
+
httpGet:
|
|
67
|
+
path: /health/ready
|
|
68
|
+
port: http
|
|
69
|
+
|
|
70
|
+
autoscaling:
|
|
71
|
+
enabled: false
|
|
72
|
+
minReplicas: 1
|
|
73
|
+
maxReplicas: 100
|
|
74
|
+
targetCPUUtilizationPercentage: 80
|
|
75
|
+
# targetMemoryUtilizationPercentage: 80
|
|
76
|
+
|
|
77
|
+
volumes: []
|
|
78
|
+
# - name: foo
|
|
79
|
+
# secret:
|
|
80
|
+
# secretName: mysecret
|
|
81
|
+
# optional: false
|
|
82
|
+
|
|
83
|
+
volumeMounts: []
|
|
84
|
+
# - name: foo
|
|
85
|
+
# mountPath: "/etc/foo"
|
|
86
|
+
# readOnly: true
|
|
87
|
+
|
|
88
|
+
nodeSelector: {}
|
|
89
|
+
|
|
90
|
+
tolerations: []
|
|
91
|
+
|
|
92
|
+
affinity: {}
|
|
93
|
+
|
|
94
|
+
virtualService:
|
|
95
|
+
create: false
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
<Nullable>enable</Nullable>
|
|
6
6
|
</PropertyGroup>
|
|
7
7
|
<ItemGroup>
|
|
8
|
-
<PackageReference Include="CodeDesignPlus.Net.Generator" Version="0.6.0
|
|
9
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis.Abstractions" Version="0.6.0
|
|
10
|
-
<PackageReference Include="CodeDesignPlus.Net.PubSub.Abstractions" Version="0.6.0
|
|
11
|
-
<PackageReference Include="CodeDesignPlus.Net.Cache.Abstractions" Version="0.6.0
|
|
8
|
+
<PackageReference Include="CodeDesignPlus.Net.Generator" Version="0.6.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
|
9
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis.Abstractions" Version="0.6.0" />
|
|
10
|
+
<PackageReference Include="CodeDesignPlus.Net.PubSub.Abstractions" Version="0.6.0" />
|
|
11
|
+
<PackageReference Include="CodeDesignPlus.Net.Cache.Abstractions" Version="0.6.0" />
|
|
12
12
|
<PackageReference Include="Mapster" Version="7.4.0" />
|
|
13
13
|
<PackageReference Include="Mapster.DependencyInjection" Version="1.0.1" />
|
|
14
|
-
<PackageReference Include="MediatR" Version="12.
|
|
14
|
+
<PackageReference Include="MediatR" Version="12.5.0" />
|
|
15
15
|
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />
|
|
16
16
|
</ItemGroup>
|
|
17
17
|
<ItemGroup>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<Nullable>enable</Nullable>
|
|
6
6
|
</PropertyGroup>
|
|
7
7
|
<ItemGroup>
|
|
8
|
-
<PackageReference Include="CodeDesignPlus.Net.Exceptions" Version="0.6.0
|
|
9
|
-
<PackageReference Include="CodeDesignPlus.Net.Mongo" Version="0.6.0
|
|
8
|
+
<PackageReference Include="CodeDesignPlus.Net.Exceptions" Version="0.6.0" />
|
|
9
|
+
<PackageReference Include="CodeDesignPlus.Net.Mongo" Version="0.6.0" />
|
|
10
10
|
</ItemGroup>
|
|
11
11
|
</Project>
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
<PublishAot>false</PublishAot>
|
|
8
8
|
</PropertyGroup>
|
|
9
9
|
<ItemGroup>
|
|
10
|
-
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0
|
|
11
|
-
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0
|
|
12
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0
|
|
13
|
-
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0
|
|
14
|
-
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0
|
|
15
|
-
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0
|
|
16
|
-
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0
|
|
17
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0
|
|
10
|
+
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0" />
|
|
11
|
+
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0" />
|
|
12
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0" />
|
|
13
|
+
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0" />
|
|
14
|
+
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0" />
|
|
15
|
+
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0" />
|
|
16
|
+
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0" />
|
|
17
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0" />
|
|
18
18
|
</ItemGroup>
|
|
19
19
|
<ItemGroup>
|
|
20
20
|
<SonarQubeSetting Include="sonar.coverage.exclusions">
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Vault": {
|
|
3
|
+
"Enable": true,
|
|
4
|
+
"Address": "http://localhost:8200",
|
|
5
|
+
"AppName": "ms-archetype",
|
|
6
|
+
"Solution": "vault",
|
|
7
|
+
"Token": "root",
|
|
8
|
+
"Mongo": {
|
|
9
|
+
"Enable": false,
|
|
10
|
+
"TemplateConnectionString": "mongodb://{0}:{1}@localhost:27017"
|
|
11
|
+
},
|
|
12
|
+
"RabbitMQ": {
|
|
13
|
+
"Enable": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
</PropertyGroup>
|
|
12
12
|
<ItemGroup>
|
|
13
13
|
<PackageReference Include="NodaTime.Serialization.SystemTextJson" Version="1.3.0" />
|
|
14
|
-
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0
|
|
15
|
-
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0
|
|
14
|
+
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0" />
|
|
15
|
+
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0" />
|
|
16
16
|
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="8.1.1" />
|
|
17
17
|
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="8.1.1" />
|
|
18
18
|
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="8.1.1" />
|
|
19
|
-
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0
|
|
20
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0
|
|
21
|
-
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0
|
|
22
|
-
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0
|
|
23
|
-
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0
|
|
24
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0
|
|
19
|
+
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0" />
|
|
20
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0" />
|
|
21
|
+
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0" />
|
|
22
|
+
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0" />
|
|
23
|
+
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0" />
|
|
24
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0" />
|
|
25
25
|
|
|
26
26
|
<PackageReference Include="AspNetCore.HealthChecks.MongoDb" Version="9.0.0" />
|
|
27
27
|
<PackageReference Include="AspNetCore.HealthChecks.Rabbitmq" Version="9.0.0" />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Vault": {
|
|
3
|
+
"Enable": true,
|
|
4
|
+
"Address": "http://localhost:8200",
|
|
5
|
+
"AppName": "ms-archetype",
|
|
6
|
+
"Solution": "vault",
|
|
7
|
+
"Token": "root",
|
|
8
|
+
"Mongo": {
|
|
9
|
+
"Enable": false,
|
|
10
|
+
"TemplateConnectionString": "mongodb://{0}:{1}@localhost:27017"
|
|
11
|
+
},
|
|
12
|
+
"RabbitMQ": {
|
|
13
|
+
"Enable": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<Protobuf Include="Protos\orders.proto" GrpcServices="Server" />
|
|
10
10
|
</ItemGroup>
|
|
11
11
|
<ItemGroup>
|
|
12
|
-
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0
|
|
13
|
-
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0
|
|
12
|
+
<PackageReference Include="CodeDesignPlus.Net.Microservice.Commons" Version="0.6.0" />
|
|
13
|
+
<PackageReference Include="CodeDesignPlus.Net.Vault" Version="0.6.0" />
|
|
14
14
|
<PackageReference Include="Grpc.AspNetCore" Version="2.70.0" />
|
|
15
15
|
<PackageReference Include="Grpc.AspNetCore.Server.Reflection" Version="2.70.0" />
|
|
16
16
|
<PackageReference Include="Grpc.Tools" Version="2.71.0">
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
<ItemGroup>
|
|
27
27
|
<ProjectReference Include="..\..\domain\CodeDesignPlus.Net.Microservice.Infrastructure\CodeDesignPlus.Net.Microservice.Infrastructure.csproj" />
|
|
28
28
|
<PackageReference Include="NodaTime.Serialization.Protobuf" Version="2.0.2" />
|
|
29
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0
|
|
30
|
-
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0
|
|
31
|
-
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0
|
|
32
|
-
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0
|
|
33
|
-
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0
|
|
34
|
-
<PackageReference Include="CodeDesignPlus.Net.Exceptions" Version="0.6.0
|
|
35
|
-
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0
|
|
29
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis" Version="0.6.0" />
|
|
30
|
+
<PackageReference Include="CodeDesignPlus.Net.RabbitMQ" Version="0.6.0" />
|
|
31
|
+
<PackageReference Include="CodeDesignPlus.Net.Logger" Version="0.6.0" />
|
|
32
|
+
<PackageReference Include="CodeDesignPlus.Net.Observability" Version="0.6.0" />
|
|
33
|
+
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.6.0" />
|
|
34
|
+
<PackageReference Include="CodeDesignPlus.Net.Exceptions" Version="0.6.0" />
|
|
35
|
+
<PackageReference Include="CodeDesignPlus.Net.Redis.Cache" Version="0.6.0" />
|
|
36
36
|
</ItemGroup>
|
|
37
37
|
</Project>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Vault": {
|
|
3
|
+
"Enable": true,
|
|
4
|
+
"Address": "http://localhost:8200",
|
|
5
|
+
"AppName": "ms-archetype",
|
|
6
|
+
"Solution": "vault",
|
|
7
|
+
"Token": "root",
|
|
8
|
+
"Mongo": {
|
|
9
|
+
"Enable": false,
|
|
10
|
+
"TemplateConnectionString": "mongodb://{0}:{1}@localhost:27017"
|
|
11
|
+
},
|
|
12
|
+
"RabbitMQ": {
|
|
13
|
+
"Enable": false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Kestrel": {
|
|
3
3
|
"Endpoints": {
|
|
4
|
+
"Http": {
|
|
5
|
+
"Url": "http://*:5000",
|
|
6
|
+
"Protocols": "Http1"
|
|
7
|
+
},
|
|
4
8
|
"Http2": {
|
|
5
9
|
"Url": "http://*:5001",
|
|
6
10
|
"Protocols": "Http2"
|
|
@@ -8,7 +12,7 @@
|
|
|
8
12
|
}
|
|
9
13
|
},
|
|
10
14
|
"Core": {
|
|
11
|
-
"AppName": "ms-archetype",
|
|
15
|
+
"AppName": "ms-archetype-grpc",
|
|
12
16
|
"Version": "v1",
|
|
13
17
|
"Description": "Microservice Archetype Template",
|
|
14
18
|
"Business": "CodeDesignPlus",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
12
12
|
<PrivateAssets>all</PrivateAssets>
|
|
13
13
|
</PackageReference>
|
|
14
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
14
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
15
15
|
<PackageReference Include="Ductus.FluentDocker.XUnit" Version="2.10.59" />
|
|
16
16
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
|
|
17
17
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<PrivateAssets>all</PrivateAssets>
|
|
13
13
|
</PackageReference>
|
|
14
14
|
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.3.0" />
|
|
15
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
15
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
16
16
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
|
|
17
17
|
<PackageReference Include="Ductus.FluentDocker.XUnit" Version="2.10.59" />
|
|
18
18
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<PrivateAssets>all</PrivateAssets>
|
|
20
20
|
</PackageReference>
|
|
21
21
|
<PackageReference Include="NodaTime.Serialization.Protobuf" Version="2.0.2" />
|
|
22
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
22
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
23
23
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
|
|
24
24
|
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.3.0" />
|
|
25
25
|
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.4" />
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
18
18
|
<PrivateAssets>all</PrivateAssets>
|
|
19
19
|
</PackageReference>
|
|
20
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
20
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
21
21
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
|
22
22
|
<PackageReference Include="Moq" Version="4.20.72" />
|
|
23
23
|
<PackageReference Include="xunit" Version="2.9.3" />
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<IsPackable>false</IsPackable>
|
|
7
7
|
</PropertyGroup>
|
|
8
8
|
<ItemGroup>
|
|
9
|
-
<PackageReference Include="CodeDesignPlus.Net.Serializers" Version="0.6.0
|
|
9
|
+
<PackageReference Include="CodeDesignPlus.Net.Serializers" Version="0.6.0" />
|
|
10
10
|
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
|
|
11
11
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
12
12
|
<PrivateAssets>all</PrivateAssets>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</PackageReference>
|
|
25
25
|
</ItemGroup>
|
|
26
26
|
<ItemGroup>
|
|
27
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
27
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
28
28
|
</ItemGroup>
|
|
29
29
|
<ItemGroup>
|
|
30
30
|
<ProjectReference Include="..\..\..\src\domain\CodeDesignPlus.Net.Microservice.Infrastructure\CodeDesignPlus.Net.Microservice.Infrastructure.csproj" />
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
23
23
|
<PrivateAssets>all</PrivateAssets>
|
|
24
24
|
</PackageReference>
|
|
25
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
25
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
26
26
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
|
27
27
|
<PackageReference Include="Moq" Version="4.20.72" />
|
|
28
28
|
<PackageReference Include="xunit" Version="2.9.3" />
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
18
18
|
<PrivateAssets>all</PrivateAssets>
|
|
19
19
|
</PackageReference>
|
|
20
|
-
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0
|
|
20
|
+
<PackageReference Include="CodeDesignPlus.Net.xUnit.Microservice" Version="0.6.0" />
|
|
21
21
|
<PackageReference Include="Grpc.Core.Testing" Version="2.46.6" />
|
|
22
22
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
|
23
23
|
<PackageReference Include="Moq" Version="4.20.72" />
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
using System.Text.Json.Serialization;
|
|
2
|
+
|
|
1
3
|
namespace <%= ns %>;
|
|
2
4
|
|
|
3
5
|
public sealed partial class <%= name %>
|
|
@@ -7,7 +9,8 @@ public sealed partial class <%= name %>
|
|
|
7
9
|
|
|
8
10
|
public string Value { get; private set; }
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
[JsonConstructor]
|
|
13
|
+
public <%= name %>(string value)
|
|
11
14
|
{
|
|
12
15
|
DomainGuard.IsNullOrEmpty(value, Errors.UnknownError);
|
|
13
16
|
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
**/.classpath
|
|
2
|
-
**/.dockerignore
|
|
3
|
-
**/.env
|
|
4
|
-
**/.git
|
|
5
|
-
**/.gitignore
|
|
6
|
-
**/.project
|
|
7
|
-
**/.settings
|
|
8
|
-
**/.toolstarget
|
|
9
|
-
**/.vs
|
|
10
|
-
**/.vscode
|
|
11
|
-
**/*.*proj.user
|
|
12
|
-
**/*.dbmdl
|
|
13
|
-
**/*.jfm
|
|
14
|
-
**/azds.yaml
|
|
15
|
-
**/bin
|
|
16
|
-
**/charts
|
|
17
|
-
**/docker-compose*
|
|
18
|
-
**/Dockerfile*
|
|
19
|
-
**/node_modules
|
|
20
|
-
**/npm-debug.log
|
|
21
|
-
**/obj
|
|
22
|
-
**/secrets.dev.yaml
|
|
23
|
-
**/values.dev.yaml
|
|
24
|
-
LICENSE
|
|
25
|
-
README.md
|
|
26
|
-
!**/.gitignore
|
|
27
|
-
!.git/HEAD
|
|
28
|
-
!.git/config
|
|
29
|
-
!.git/packed-refs
|
|
30
|
-
!.git/refs/heads/**
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Patterns to ignore when building packages.
|
|
2
|
-
# This supports shell glob matching, relative path matching, and
|
|
3
|
-
# negation (prefixed with !). Only one pattern per line.
|
|
4
|
-
.DS_Store
|
|
5
|
-
# Common VCS dirs
|
|
6
|
-
.git/
|
|
7
|
-
.gitignore
|
|
8
|
-
.bzr/
|
|
9
|
-
.bzrignore
|
|
10
|
-
.hg/
|
|
11
|
-
.hgignore
|
|
12
|
-
.svn/
|
|
13
|
-
# Common backup files
|
|
14
|
-
*.swp
|
|
15
|
-
*.bak
|
|
16
|
-
*.tmp
|
|
17
|
-
*.orig
|
|
18
|
-
*~
|
|
19
|
-
# Various IDEs
|
|
20
|
-
.project
|
|
21
|
-
.idea/
|
|
22
|
-
*.tmproj
|
|
23
|
-
.vscode/
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Patterns to ignore when building packages.
|
|
2
|
-
# This supports shell glob matching, relative path matching, and
|
|
3
|
-
# negation (prefixed with !). Only one pattern per line.
|
|
4
|
-
.DS_Store
|
|
5
|
-
# Common VCS dirs
|
|
6
|
-
.git/
|
|
7
|
-
.gitignore
|
|
8
|
-
.bzr/
|
|
9
|
-
.bzrignore
|
|
10
|
-
.hg/
|
|
11
|
-
.hgignore
|
|
12
|
-
.svn/
|
|
13
|
-
# Common backup files
|
|
14
|
-
*.swp
|
|
15
|
-
*.bak
|
|
16
|
-
*.tmp
|
|
17
|
-
*.orig
|
|
18
|
-
*~
|
|
19
|
-
# Various IDEs
|
|
20
|
-
.project
|
|
21
|
-
.idea/
|
|
22
|
-
*.tmproj
|
|
23
|
-
.vscode/
|
package/generators/microservice/templates/microservice/charts/ms-archetype-worker/.helmignore
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Patterns to ignore when building packages.
|
|
2
|
-
# This supports shell glob matching, relative path matching, and
|
|
3
|
-
# negation (prefixed with !). Only one pattern per line.
|
|
4
|
-
.DS_Store
|
|
5
|
-
# Common VCS dirs
|
|
6
|
-
.git/
|
|
7
|
-
.gitignore
|
|
8
|
-
.bzr/
|
|
9
|
-
.bzrignore
|
|
10
|
-
.hg/
|
|
11
|
-
.hgignore
|
|
12
|
-
.svn/
|
|
13
|
-
# Common backup files
|
|
14
|
-
*.swp
|
|
15
|
-
*.bak
|
|
16
|
-
*.tmp
|
|
17
|
-
*.orig
|
|
18
|
-
*~
|
|
19
|
-
# Various IDEs
|
|
20
|
-
.project
|
|
21
|
-
.idea/
|
|
22
|
-
*.tmproj
|
|
23
|
-
.vscode/
|
|
File without changes
|
|
File without changes
|