Skip to content

Commit d4f316e

Browse files
committed
refactor codes to run projects locally
1 parent b517e02 commit d4f316e

File tree

22 files changed

+52
-46
lines changed

22 files changed

+52
-46
lines changed

Diff for: clients/src/main/java/com/hrk/clients/fraud/FraudClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
public interface FraudClient {
1212

1313
// you can say general path in getMapping if you want
14-
@GetMapping("/{customerId}")
14+
@GetMapping("/api/v1/fraud-check/{customerId}")
1515
FraudCheckResponse isFraudster(@PathVariable("customerId") Integer customerId);
1616
}

Diff for: customer/src/main/resources/application.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ server:
44
spring:
55
application:
66
name: customer
7+
profiles:
8+
active: default
79

810
datasource:
911
password: password
@@ -31,4 +33,4 @@ eureka:
3133
defaultZone: http://localhost:8761/eureka
3234
fetch-registry: true
3335
register-with-eureka: true
34-
enabled: false
36+
enabled: true

Diff for: docker-compose.yml

+42-42
Original file line numberDiff line numberDiff line change
@@ -63,48 +63,48 @@ services:
6363
# depends_on:
6464
# - zipkin
6565
# - eureka-server
66-
customer:
67-
image: hrkarimi/customer:latest
68-
container_name: customer
69-
ports:
70-
- "8080:8080"
71-
environment:
72-
- SPRING_PROFILES_ACTIVE=docker
73-
networks:
74-
- spring
75-
- postgres
76-
depends_on:
77-
- postgres
78-
- zipkin
79-
- rabbitmq
80-
fraud:
81-
image: hrkarimi/fraud:latest
82-
container_name: fraud
83-
ports:
84-
- "8081:8081"
85-
environment:
86-
- SPRING_PROFILES_ACTIVE=docker
87-
networks:
88-
- spring
89-
- postgres
90-
depends_on:
91-
- postgres
92-
- zipkin
93-
- rabbitmq
94-
notification:
95-
image: hrkarimi/notification:latest
96-
container_name: notification
97-
ports:
98-
- "8082:8082"
99-
environment:
100-
- SPRING_PROFILES_ACTIVE=docker
101-
networks:
102-
- spring
103-
- postgres
104-
depends_on:
105-
- postgres
106-
- zipkin
107-
- rabbitmq
66+
# customer:
67+
# image: hrkarimi/customer:latest
68+
# container_name: customer
69+
# ports:
70+
# - "8080:8080"
71+
# environment:
72+
# - SPRING_PROFILES_ACTIVE=docker
73+
# networks:
74+
# - spring
75+
# - postgres
76+
# depends_on:
77+
# - postgres
78+
# - zipkin
79+
# - rabbitmq
80+
# fraud:
81+
# image: hrkarimi/fraud:latest
82+
# container_name: fraud
83+
# ports:
84+
# - "8081:8081"
85+
# environment:
86+
# - SPRING_PROFILES_ACTIVE=docker
87+
# networks:
88+
# - spring
89+
# - postgres
90+
# depends_on:
91+
# - postgres
92+
# - zipkin
93+
# - rabbitmq
94+
# notification:
95+
# image: hrkarimi/notification:latest
96+
# container_name: notification
97+
# ports:
98+
# - "8082:8082"
99+
# environment:
100+
# - SPRING_PROFILES_ACTIVE=docker
101+
# networks:
102+
# - spring
103+
# - postgres
104+
# depends_on:
105+
# - postgres
106+
# - zipkin
107+
# - rabbitmq
108108

109109

110110

Diff for: fraud/src/main/resources/application.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ server:
44
spring:
55
application:
66
name: fraud
7+
profiles:
8+
active: default
79

810
datasource:
911
password: password
@@ -28,4 +30,4 @@ eureka:
2830
defaultZone: http://localhost:8761/eureka
2931
fetch-registry: true
3032
register-with-eureka: true
31-
enabled: false
33+
enabled: true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: notification/src/main/resources/application.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ server:
44
spring:
55
application:
66
name: notification
7+
profiles:
8+
active: default
79

810
datasource:
911
password: password
@@ -31,7 +33,7 @@ eureka:
3133
defaultZone: http://localhost:8761/eureka
3234
fetch-registry: true
3335
register-with-eureka: true
34-
enabled: false
36+
enabled: true
3537

3638
rabbitmq:
3739
exchanges:

0 commit comments

Comments
 (0)