Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/accounts-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "1.0"

accounts:
message: "Welcome to EazyBank accounts related prod APIs "
contactDetails:
name: "Reine Aishwarya - Product Owner"
email: "aishwarya@eazybank.com"
onCallSupport:
- (453) 392-4829
- (236) 203-0384
11 changes: 11 additions & 0 deletions config/accounts-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "2.0"

accounts:
message: "Welcome to EazyBank accounts related QA APIs "
contactDetails:
name: "Smitha Ray - QA Lead"
email: "smitha@eazybank.com"
onCallSupport:
- (666) 265-3765
- (666) 734-8371
11 changes: 11 additions & 0 deletions config/accounts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "3.0"

accounts:
message: "Welcome to EazyBank accounts related local APIs "
contactDetails:
name: "John Doe - Developer"
email: "john@eazybank.com"
onCallSupport:
- (555) 555-1234
- (555) 523-1345
11 changes: 11 additions & 0 deletions config/cards-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "1.0"

cards:
message: "Welcome to EazyBank cards related prod APIs "
contactDetails:
name: "Sandra Harald - Product Owner"
email: "sandra@eazybank.com"
onCallSupport:
- (617) 432-2356
- (936) 564-8721
11 changes: 11 additions & 0 deletions config/cards-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "2.0"

cards:
message: "Welcome to EazyBank cards related QA APIs "
contactDetails:
name: "Cherryl Pankaj - QA Lead"
email: "cherryl@eazybank.com"
onCallSupport:
- (310) 875-4367
- (201) 236-1267
11 changes: 11 additions & 0 deletions config/cards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "3.0"

cards:
message: "Welcome to EazyBank cards related local APIs "
contactDetails:
name: "Dragos Lech - Developer"
email: "dragos@eazybank.com"
onCallSupport:
- (412) 419-3491
- (915) 382-1932
11 changes: 11 additions & 0 deletions config/loans-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "1.0"

loans:
message: "Welcome to EazyBank loans related prod APIs "
contactDetails:
name: "Pelias Sudhir - Product Owner"
email: "pelias@eazybank.com"
onCallSupport:
- (723) 656-8709
- (156) 342-0956
11 changes: 11 additions & 0 deletions config/loans-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "2.0"

loans:
message: "Welcome to EazyBank loans related QA APIs "
contactDetails:
name: "Cyrano Marita - QA Lead"
email: "cyrano@eazybank.com"
onCallSupport:
- (785) 545-6565
- (853) 546-3467
11 changes: 11 additions & 0 deletions config/loans.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
version: "3.0"

loans:
message: "Welcome to EazyBank loans related local APIs "
contactDetails:
name: "Amaal Grega - Developer"
email: "amaal@eazybank.com"
onCallSupport:
- (452) 456-2176
- (546) 764-8934
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import java.time.LocalDateTime;

@MappedSuperclass
@MappedSuperclass // This class will be inherited by other entities
@EntityListeners(AuditingEntityListener.class)
@Getter @Setter @ToString
public class BaseEntity {
Expand Down
4 changes: 4 additions & 0 deletions section2/accounts/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\ ___| ___| _ \ | | \ | __ __| ___|
_ \ | | | | | | \ | | \___ \
___ \ | | | | | | |\ | | |
_/ _\ \____| \____| \___/ \___/ _| \_| _| _____/
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
import lombok.*;

@Entity
@Getter @Setter @ToString @AllArgsConstructor @NoArgsConstructor
public class Accounts extends BaseEntity {
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Accounts extends BaseEntity {

@Column(name="customer_id")
@Column(name = "customer_id")
private Long customerId;

@Column(name="account_number")
@Column(name = "account_number")
@Id
private Long accountNumber;

@Column(name="account_type")
@Column(name = "account_type")
private String accountType;

@Column(name="branch_address")
@Column(name = "branch_address")
private String branchAddress;

}
43 changes: 42 additions & 1 deletion section6/v2-spring-cloud-config/accounts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,52 @@
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<from>
<image>openjdk:21-jdk</image>
<platforms>
<!-- <platform>-->
<!-- <architecture>amd64</architecture>-->
<!-- <os>linux</os>-->
<!-- </platform>-->
<platform>
<architecture>arm64</architecture>
<os>linux</os>
</platform>
</platforms>
</from>
<to>
<image>eazybytes/${project.artifactId}:s6</image>
<image>achour94/${project.artifactId}:s6</image>
</to>
</configuration>
</plugin>
<!-- Add this plugin to ensure Lombok works in Maven builds -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>

<!-- You may also need this compiler configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
44 changes: 43 additions & 1 deletion section6/v2-spring-cloud-config/cards/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,53 @@
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<from>
<image>openjdk:21-jdk</image>
<platforms>
<!-- <platform>-->
<!-- <architecture>amd64</architecture>-->
<!-- <os>linux</os>-->
<!-- </platform>-->
<platform>
<architecture>arm64</architecture>
<os>linux</os>
</platform>
</platforms>
</from>
<to>
<image>eazybytes/${project.artifactId}:s6</image>
<image>achour94/${project.artifactId}:s6</image>
</to>
</configuration>
</plugin>

<!-- Add this plugin to ensure Lombok works in Maven builds -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>

<!-- You may also need this compiler configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
45 changes: 43 additions & 2 deletions section6/v2-spring-cloud-config/configserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,53 @@
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<from>
<image>openjdk:21-jdk</image>
<platforms>
<!-- <platform>-->
<!-- <architecture>amd64</architecture>-->
<!-- <os>linux</os>-->
<!-- </platform>-->
<platform>
<architecture>arm64</architecture>
<os>linux</os>
</platform>
</platforms>
</from>
<to>
<image>eazybytes/${project.artifactId}:s6</image>
<image>achour94/${project.artifactId}:s6</image>
</to>
</configuration>
</plugin>

<!-- Add this plugin to ensure Lombok works in Maven builds -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>

<!-- You may also need this compiler configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ spring:
application:
name: "configserver"
profiles:
# active: native
# active: native
active: git
cloud:
config:
server:
# native:
# search-locations: "classpath:/config"
# search-locations: "file:///Users//eazybytes//Documents//config"
# native:
# search-locations: "classpath:/config"
# search-locations: "file:///Users/berrahmaach//IdeaProjects//microservices//config"
git:
uri: "https://github.com/eazybytes/eazybytes-config.git"
default-label: main
timeout: 5
clone-on-start: true
force-pull: true
uri: "https://github.com/achour94/eazybytes-config.git"
default-label: main # branch name
timeout: 5 # represent the time in seconds to wait for the git clone
clone-on-start: true # clone the repository on startup
force-pull: true # force pull the repository on startup
rabbitmq:
host: "localhost"
port: 5672
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
service: network-deploy-service

configserver:
image: "eazybytes/configserver:s6"
image: "achour94/configserver:s6"
container_name: configserver-ms
ports:
- "8071:8071"
Expand All @@ -34,7 +34,7 @@ services:
service: microservice-base-config

accounts:
image: "eazybytes/accounts:s6"
image: "achour94/accounts:s6"
container_name: accounts-ms
ports:
- "8080:8080"
Expand All @@ -48,7 +48,7 @@ services:
service: microservice-configserver-config

loans:
image: "eazybytes/loans:s6"
image: "achour94/loans:s6"
container_name: loans-ms
ports:
- "8090:8090"
Expand All @@ -62,7 +62,7 @@ services:
service: microservice-configserver-config

cards:
image: "eazybytes/cards:s6"
image: "achour94/cards:s6"
container_name: cards-ms
ports:
- "9000:9000"
Expand Down
Loading