Skip to content

Commit 5ab4d07

Browse files
committed
created parent ms structure
1 parent 6ff5fac commit 5ab4d07

File tree

49 files changed

+309
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+309
-58
lines changed

.idea/encodings.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/spring-microservices.iml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"format":"vParquet2","blockID":"0c9c134c-9504-4b9c-a10b-fc2d32bdf459","minID":"ZtCXat+vX/VOpzFuaYXaNg==","maxID":"ZtClhOhkWLAFfDe3uUnh8g==","tenantID":"single-tenant","startTime":"2024-08-29T15:44:42Z","endTime":"2024-08-29T16:44:52Z","totalObjects":9025,"size":1891985,"compactionLevel":1,"encoding":"none","indexPageSize":0,"totalRecords":1,"dataEncoding":"","bloomShards":1,"footerSize":9512}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"format":"vParquet2","blockID":"0d2888ca-6b1d-49b2-ab9f-f3fa7a5812e8","minID":"ZtCJRxzIXj3bfwTGflLXZA==","maxID":"ZtCXaqX2HRdYdDxxRl5Hxg==","tenantID":"single-tenant","startTime":"2024-08-29T14:44:23Z","endTime":"2024-08-29T15:44:42Z","totalObjects":9049,"size":1893125,"compactionLevel":1,"encoding":"none","indexPageSize":0,"totalRecords":1,"dataEncoding":"","bloomShards":1,"footerSize":9512}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"format":"vParquet2","blockID":"b43b6aef-5e38-43b4-b0b8-8bcfaf4758cb","minID":"ZtCefQy2pq+eHzjf+PuoIQ==","maxID":"ZtClhOhkWLAFfDe3uUnh8g==","tenantID":"single-tenant","startTime":"2024-08-29T16:14:53Z","endTime":"2024-08-29T16:44:52Z","totalObjects":4499,"size":951428,"compactionLevel":0,"encoding":"none","indexPageSize":0,"totalRecords":1,"dataEncoding":"","bloomShards":1,"footerSize":9286}

api-gateway/docker/tempo/tempo-data/blocks/single-tenant/e00e23c1-5cd7-44d9-ae5a-de405ab2ac7e/meta.compacted.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

api-gateway/docker/tempo/tempo-data/blocks/single-tenant/fa2e3d3f-a796-4467-b710-c0132b385477/meta.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.

api-gateway/pom.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<!-- <parent>-->
6+
<!-- <groupId>org.springframework.boot</groupId>-->
7+
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
8+
<!-- <version>3.3.2</version>-->
9+
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
10+
<!-- </parent>-->
11+
512
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.2</version>
9-
<relativePath/> <!-- lookup parent from repository -->
13+
<groupId>com.nipundas</groupId>
14+
<artifactId>spring-microservices</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<relativePath>../pom.xml</relativePath>
1017
</parent>
11-
<groupId>com.nipundas</groupId>
18+
19+
<!-- <groupId>com.nipundas</groupId>-->
1220
<artifactId>api-gateway</artifactId>
1321
<version>0.0.1-SNAPSHOT</version>
1422
<name>api-gateway</name>
@@ -68,10 +76,6 @@
6876
<artifactId>loki-logback-appender</artifactId>
6977
<version>1.3.2</version>
7078
</dependency>
71-
<dependency>
72-
<groupId>org.springframework.boot</groupId>
73-
<artifactId>spring-boot-starter-actuator</artifactId>
74-
</dependency>
7579
<dependency>
7680
<groupId>io.micrometer</groupId>
7781
<artifactId>micrometer-registry-prometheus</artifactId>

inventory-service/pom.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<!-- <parent>-->
6+
<!-- <groupId>org.springframework.boot</groupId>-->
7+
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
8+
<!-- <version>3.3.2</version>-->
9+
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
10+
<!-- </parent>-->
11+
512
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.2</version>
9-
<relativePath/> <!-- lookup parent from repository -->
13+
<groupId>com.nipundas</groupId>
14+
<artifactId>spring-microservices</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<relativePath>../pom.xml</relativePath>
1017
</parent>
18+
1119
<groupId>com.nipundas</groupId>
1220
<artifactId>inventory-service</artifactId>
1321
<version>0.0.1-SNAPSHOT</version>

notification-service/pom.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<!-- <parent>-->
6+
<!-- <groupId>org.springframework.boot</groupId>-->
7+
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
8+
<!-- <version>3.3.3</version>-->
9+
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
10+
<!-- </parent>-->
511
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.3</version>
9-
<relativePath/> <!-- lookup parent from repository -->
12+
<groupId>com.nipundas</groupId>
13+
<artifactId>spring-microservices</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<relativePath>../pom.xml</relativePath>
1016
</parent>
17+
1118
<groupId>com.nipundas</groupId>
1219
<artifactId>notification-service</artifactId>
1320
<version>0.0.1-SNAPSHOT</version>

order-service/mysql/#ib_16384_0.dblwr

0 Bytes
Binary file not shown.

order-service/pom.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<!-- <parent>-->
6+
<!-- <groupId>org.springframework.boot</groupId>-->
7+
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
8+
<!-- <version>3.3.2</version>-->
9+
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
10+
<!-- </parent>-->
511
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.2</version>
9-
<relativePath/> <!-- lookup parent from repository -->
12+
<groupId>com.nipundas</groupId>
13+
<artifactId>spring-microservices</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<relativePath>../pom.xml</relativePath>
1016
</parent>
17+
1118
<groupId>com.nipundas</groupId>
1219
<artifactId>order-service</artifactId>
1320
<version>0.0.1-SNAPSHOT</version>
@@ -43,10 +50,6 @@
4350
<groupId>org.flywaydb</groupId>
4451
<artifactId>flyway-core</artifactId>
4552
</dependency>
46-
<dependency>
47-
<groupId>org.flywaydb</groupId>
48-
<artifactId>flyway-database-postgresql</artifactId>
49-
</dependency>
5053
<dependency>
5154
<groupId>org.flywaydb</groupId>
5255
<artifactId>flyway-mysql</artifactId>
@@ -149,10 +152,6 @@
149152
<artifactId>loki-logback-appender</artifactId>
150153
<version>1.3.2</version>
151154
</dependency>
152-
<dependency>
153-
<groupId>org.springframework.boot</groupId>
154-
<artifactId>spring-boot-starter-actuator</artifactId>
155-
</dependency>
156155
<dependency>
157156
<groupId>io.micrometer</groupId>
158157
<artifactId>micrometer-registry-prometheus</artifactId>
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
artifactId=order-service
2+
groupId=com.nipundas
3+
version=0.0.1-SNAPSHOT

order-service/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ com\nipundas\microservices\order\OrderServiceApplication.class
55
com\nipundas\microservices\order\event\OrderPlacedEvent$Builder.class
66
com\nipundas\microservices\order\config\OpenAPIConfig.class
77
com\nipundas\microservices\order\repository\OrderRepository.class
8+
com\nipundas\microservices\order\config\ObservabilityConfig.class
89
com\nipundas\microservices\order\event\OrderPlacedEvent.class
910
com\nipundas\microservices\order\model\Order.class
1011
com\nipundas\microservices\order\service\OrderService.class
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\client\InventoryClient.java
2-
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\config\OpenAPIConfig.java
31
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\config\RestClientConfig.java
4-
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\controller\OrderController.java
5-
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\dto\OrderRequest.java
2+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\config\ObservabilityConfig.java
3+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\client\InventoryClient.java
64
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\event\OrderPlacedEvent.java
7-
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\model\Order.java
5+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\dto\OrderRequest.java
6+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\controller\OrderController.java
87
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\OrderServiceApplication.java
8+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\config\OpenAPIConfig.java
99
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\repository\OrderRepository.java
10+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\model\Order.java
1011
C:\Users\nipun\Downloads\spring-microservices\order-service\src\main\java\com\nipundas\microservices\order\service\OrderService.java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
com\nipundas\microservices\order\TestOrderServiceApplication.class
2+
com\nipundas\microservices\order\OrderServiceApplicationTests.class
3+
com\nipundas\microservices\order\TestcontainersConfiguration.class
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\test\java\com\nipundas\microservices\order\OrderServiceApplicationTests.java
2+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\test\java\com\nipundas\microservices\order\TestcontainersConfiguration.java
3+
C:\Users\nipun\Downloads\spring-microservices\order-service\src\test\java\com\nipundas\microservices\order\TestOrderServiceApplication.java
Binary file not shown.
Binary file not shown.

order-service/target/surefire-reports/TEST-com.nipundas.microservices.order.OrderServiceApplicationTests.xml

Lines changed: 176 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-------------------------------------------------------------------------------
2+
Test set: com.nipundas.microservices.order.OrderServiceApplicationTests
3+
-------------------------------------------------------------------------------
4+
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 90.71 s -- in com.nipundas.microservices.order.OrderServiceApplicationTests

pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>3.2.4</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
12+
<groupId>com.nipundas</groupId>
13+
<artifactId>spring-microservices</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<packaging>pom</packaging>
16+
17+
<name>spring-microservices</name>
18+
<modules>
19+
<module>api-gateway</module>
20+
<module>product-service</module>
21+
<module>order-service</module>
22+
<module>inventory-service</module>
23+
<module>notification-service</module>
24+
</modules>
25+
26+
<properties>
27+
<java.version>17</java.version>
28+
<spring-cloud.version>2023.0.3</spring-cloud.version>
29+
<!-- <dockerPassword>${dockerPassword}</dockerPassword>-->
30+
</properties>
31+
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-maven-plugin</artifactId>
37+
<configuration>
38+
<excludes>
39+
<exclude>
40+
<groupId>org.projectlombok</groupId>
41+
<artifactId>lombok</artifactId>
42+
</exclude>
43+
</excludes>
44+
</configuration>
45+
</plugin>
46+
</plugins>
47+
</build>
48+
</project>

product-service/data/WiredTiger.turtle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ WiredTiger 11.2.0: (November 10, 2022)
33
WiredTiger version
44
major=11,minor=2,patch=0
55
file:WiredTiger.wt
6-
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=,cache_resident=false,checksum=on,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=0),value_format=S,verbose=[],version=(major=1,minor=1),write_timestamp_usage=none,checkpoint=(WiredTigerCheckpoint.11108=(addr="018081e495649d0f8181e4cbd61c158281e47238eed6808080e3010fc0e23fc0",order=11108,time=1724946062,size=28672,newest_start_durable_ts=0,oldest_start_ts=0,newest_txn=577,newest_stop_durable_ts=0,newest_stop_ts=-1,newest_stop_txn=-11,prepare=0,write_gen=33318,run_write_gen=31603)),checkpoint_backup_info=,checkpoint_lsn=(12,442752)
6+
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=,cache_resident=false,checksum=on,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=0),value_format=S,verbose=[],version=(major=1,minor=1),write_timestamp_usage=none,checkpoint=(WiredTigerCheckpoint.11203=(addr="018981e46b2821588a81e4a3c69f3e8b81e448df82d2808080e3010fc0e23fc0",order=11203,time=1724951766,size=28672,newest_start_durable_ts=0,oldest_start_ts=0,newest_txn=672,newest_stop_durable_ts=0,newest_stop_ts=-1,newest_stop_txn=-11,prepare=0,write_gen=33603,run_write_gen=31603)),checkpoint_backup_info=,checkpoint_lsn=(12,515712)

product-service/data/WiredTiger.wt

0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

product-service/pom.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<!-- <parent>-->
6+
<!-- <groupId>org.springframework.boot</groupId>-->
7+
<!-- <artifactId>spring-boot-starter-parent</artifactId>-->
8+
<!-- <version>3.3.2</version>-->
9+
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
10+
<!-- </parent>-->
511
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.3.2</version>
9-
<relativePath/> <!-- lookup parent from repository -->
12+
<groupId>com.nipundas</groupId>
13+
<artifactId>spring-microservices</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<relativePath>../pom.xml</relativePath>
1016
</parent>
17+
1118
<groupId>com.nipundas</groupId>
1219
<artifactId>product-service</artifactId>
1320
<version>0.0.1-SNAPSHOT</version>

0 commit comments

Comments
 (0)