Skip to content

Commit 6335ea3

Browse files
authored
Merge pull request #8 from javatodev/development
WIP: Development
2 parents ca87c81 + 7ed94f8 commit 6335ea3

File tree

29 files changed

+482
-170
lines changed

29 files changed

+482
-170
lines changed

.DS_Store

0 Bytes
Binary file not shown.

core-banking-service/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ dependencies {
2929
implementation 'org.springframework.boot:spring-boot-starter-web'
3030
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
3131
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
32+
33+
//SPRING CLOUD CONFIG
34+
implementation 'org.springframework.cloud:spring-cloud-starter-config'
35+
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
36+
3237
compileOnly 'org.projectlombok:lombok'
3338
annotationProcessor 'org.projectlombok:lombok'
3439
implementation 'org.flywaydb:flyway-core:8.0.3'
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
11
spring:
22
application:
33
name: core-banking-service
4-
datasource:
5-
url: jdbc:mysql://localhost:3306/banking_core_service
6-
username: root
7-
password: password
8-
jpa:
9-
hibernate:
10-
ddl-auto: none
11-
12-
server:
13-
port: 8092
14-
15-
eureka:
16-
client:
17-
service-url:
18-
defaultZone: http://localhost:8081/eureka
19-
20-
info:
21-
app:
22-
name: ${spring.application.name}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
spring:
2+
cloud:
3+
config:
4+
uri: http://localhost:8090
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<mxfile host="Electron" modified="2022-03-12T19:30:39.599Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/16.5.1 Chrome/96.0.4664.110 Electron/16.0.7 Safari/537.36" etag="nyoGq1s-tkh9AkoZ7Cfh" version="16.5.1" type="device"><diagram id="dkyy1IftKECsSnuwS7fU" name="Page-1">7ZjfT9swEMf/mj5SpXGTto/0FxsDCcEEbC+TSUzizclFjtMf/PU7N06TzIKCBAsPfal6X5999n18ySk9Mks2Z5Jm8SWETPRcJ9z0yLznupOhj79a2JbCyPVKIZI8LKVBLdzwJ2ZEx6gFD1neclQAQvGsLQaQpixQLY1KCeu22yOIdtSMRswSbgIqbPWOhyou1bE7qvUvjEdxFXngT8qRhFbO5iR5TENYNySy6JGZBFDlv2QzY0LnrspLOW/5zOh+Y5Kl6jUTwpPzBV9632+/Dq/pN3L78/48PhmbvaltdWAW4vmNCVLFEEFKxaJWpxKKNGR6VQet2ucCIENxgOJvptTWwKSFApRilQgzWsbUgZ49ipFyKGTAXth/dSWojJh6wc/dJxwvKoOEKbnFeZIJqviqvQ9qrky096uzin9MYt+QZLPuiorCRDrjKi4eULtmGeRcgYnSBLFiUnG8iBf0gYkr7cUhxaEHUAqSdkYr31PBI+2jNIkpNVaAaWUShVxJ+MNmIACteQqpxvnIhaiknkscZ7pYuto5ppneSrKJdGX36VMhWT/a7fxXgHWOPhlwvfRihRHyFl29I7Z5ma/Nw0wgY/OQMA+NiSmhdV2BnpHiRvFV2rsDnHRRJZgrub3X8/teZf4wy+2M+aZlbZvWFZMcz66p78R3LDn3lSVHOi05pwtkHWR52GmWB8fCeDsyr1Nk7hHZ25H5XSJzrfZhBukjj1C7YRJftBZRKJTgKb7oq55Ypy2kebxneLC5eGVH0WBs9QvrnPRZ4NotxtIbe2SIOjqGHJf6pyN5lw6C9Ns9xL4PbzYRxG4iRuSDMBIL4yUPJOSIkOMldZ3TI0eL48BpUyRjm+LIr1A3OU4+iuPwEMfpkaPF0R1/Oo7eIY6zI0eL49D/dBz9QxznR44WR3/4HzmiWX/m2o01vhWSxV8=</diagram></mxfile>
23 KB
Loading

internet-banking-api-gateway/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ dependencies {
2121
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
2222
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
2323

24+
//SPRING CLOUD CONFIG
25+
implementation 'org.springframework.cloud:spring-cloud-starter-config'
26+
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
27+
2428
compileOnly 'org.projectlombok:lombok'
2529
annotationProcessor 'org.projectlombok:lombok'
2630

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,3 @@
11
spring:
22
application:
33
name: internet-banking-api-gateway
4-
5-
## API SECURITY WITH KEYCLOAK PROVIDER
6-
security:
7-
oauth2:
8-
client:
9-
provider:
10-
keycloak:
11-
authorization-uri: ${app.config.keycloak.url}/realms/${app.config.keycloak.realm}/protocol/openid-connect/auth
12-
jwk-set-uri: ${app.config.keycloak.url}/realms/${app.config.keycloak.realm}/protocol/openid-connect/certs
13-
token-uri: ${app.config.keycloak.url}/realms/${app.config.keycloak.realm}/protocol/openid-connect/token
14-
user-info-authentication-method: header
15-
user-info-uri: ${app.config.keycloak.url}/realms/${app.config.keycloak.realm}/protocol/openid-connect/userinfo
16-
user-name-attribute: preferred_username
17-
registration:
18-
internet-banking-core-client:
19-
authorization-grant-type: authorization_code
20-
client-id: ${app.config.keycloak.client-id}
21-
client-secret: ${app.config.keycloak.client-secret}
22-
provider: keycloak
23-
redirect-uri: http://localhost:8080/login/oauth2/code/keycloak
24-
scope: openid
25-
resourceserver:
26-
jwt:
27-
jwk-set-uri: ${app.config.keycloak.url}/realms/${app.config.keycloak.realm}/protocol/openid-connect/certs
28-
29-
## GATEWAY CONFIGURATIONS
30-
cloud:
31-
gateway:
32-
routes:
33-
## USER SERVICE
34-
- id: internet-banking-user-service
35-
uri: lb://internet-banking-user-service
36-
predicates:
37-
- Path=/user/**
38-
filters:
39-
- StripPrefix=1
40-
## FUND TRANSFER SERVICE
41-
- id: internet-banking-fund-transfer-service
42-
uri: lb://internet-banking-fund-transfer-service
43-
predicates:
44-
- Path=/fund-transfer/**
45-
filters:
46-
- StripPrefix=1
47-
## CORE BANKING SERVICE
48-
- id: core-banking-service
49-
uri: lb://core-banking-service
50-
predicates:
51-
- Path=/banking-core/**
52-
filters:
53-
- StripPrefix=1
54-
## UTILITY PAYMENTS SERVICE
55-
- id: internet-banking-utility-payment-service
56-
uri: lb://internet-banking-utility-payment-service
57-
predicates:
58-
- Path=/utility-payment/**
59-
filters:
60-
- StripPrefix=1
61-
62-
## SECURITY BASED CONFIGURATIONS
63-
app:
64-
config:
65-
keycloak:
66-
url: http://localhost:8080/auth
67-
realm: javatodev-internet-banking
68-
client-secret: 5d0b7186-74b0-47fc-ae04-a5de436376b9
69-
client-id: internet-banking-core-client
70-
71-
server:
72-
port: 8082
73-
74-
eureka:
75-
client:
76-
service-url:
77-
defaultZone: http://localhost:8081/eureka
78-
fetch-registry: true
79-
register-with-eureka: true
80-
instance:
81-
hostname: localhost
82-
prefer-ip-address: true
83-
84-
logging:
85-
level:
86-
org.springframework.cloud.gateway: DEBUG
87-
reactor.netty.http.client: DEBUG
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
spring:
2+
cloud:
3+
config:
4+
uri: http://localhost:8090
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/

0 commit comments

Comments
 (0)