Skip to content

Commit 37eba22

Browse files
Merge pull request #61 from JavatoDev-com/59-update-readme-with-running-local-setup
readme updates
2 parents b930cea + 02a718c commit 37eba22

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

README.md

+53-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,59 @@ In this article series I’m going to explain using internet banking API concept
1111
- [1.0.0](https://github.com/JavatoDev-com/internet-banking-concept-microservices/releases/tag/v.1.0.0) - Initial release with Java 11 and Spring Boot 2.
1212
- [2.0.0](https://github.com/JavatoDev-com/internet-banking-concept-microservices/releases/tag/v.1.0.0) - Updated version with Java 21, Spring Boot 3.2.4 , Spring Cloud 2023.0.0
1313

14+
### Installation
15+
16+
1. Clone the repository:
17+
18+
```shell
19+
$ git clone https://github.com/JavatoDev-com/internet-banking-concept-microservices.git
20+
```
21+
22+
2. Navigate to the docker-compose folder:
23+
24+
```shell
25+
$ cd internet-banking-concept-microservices/docker-compose
26+
```
27+
3. Start application using docker-compose:
28+
29+
```shell
30+
$ docker-compose up -d
31+
```
32+
33+
#### Docker Containers
34+
35+
Container | IP | Port Mapping |
36+
--- | --- | --- |
37+
openzipkin_server | 172.25.0.12 | 9411
38+
keycloak_web | 172.25.0.11 | 8080
39+
keycloak_postgre_db | 172.25.0.10 | 5432(Closed Port)
40+
mysql_javatodev_app | 172.25.0.9 | 3306
41+
internet-banking-config-server | 172.25.0.8 | 8090
42+
internet-banking-service-registry | 172.25.0.7 | 8081
43+
internet-banking-api-gateway | 172.25.0.6 | 8082
44+
internet-banking-user-service | 172.25.0.5 | 8083
45+
internet-banking-fund-transfer-service | 172.25.0.4 | 8084
46+
internet-banking-utility-payment-service | 172.25.0.3 | 8085
47+
core-banking-service | 172.25.0.2 | 8092
48+
49+
### Postman Collection
50+
51+
Whole suite related postman collection can be sync using this URL.
52+
53+
[Postman Collection](https://www.postman.com/javatodev-api/workspace/javatodev-api-collections/folder/24962357-0fecb63e-fa48-4a0d-91ba-6b7fdc5ddebd?action=share&source=copy-link&creator=24962357&ctx=documentation)
54+
55+
Clone this postman collection and switch to the `LOCAL_DOCKER_SETUP` Environment.
56+
57+
#### Test Data
58+
59+
By default we have dummy accounts details with user details under core-banking-database. Also the keycloak instance will deployed with default dataset matched to the application with all the realm, client and user data sets.
60+
61+
Proceed the testings with `AUTHENTICATION` API request under BANKING_CORE_MICROSERVICES COLLECTION.
62+
63+
```
64+
Test Credentials : [email protected] / 5V7huE3G86uB
65+
```
66+
1467
### Microservices Inside This Project
1568

1669
Here this project consist of mainly 6 microservices and those are,
@@ -75,5 +128,3 @@ Article series
75128

76129
<h1 align="center">Hi 👋, I'm Chinthaka Dinadasa</h1>
77130
<h3 align="center">A Passionate Java Fullstack Developer from Sri Lanka and Author of JavatoDev.com</h3>
78-
79-
<p align="left"> <a href="https://twitter.com/spbootdeveloper" target="blank"><img src="https://img.shields.io/twitter/follow/spbootdeveloper?logo=twitter&style=for-the-badge" alt="spbootdeveloper" /></a> </p>

docker-compose/docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44

55
zipkin:
66
image: openzipkin/zipkin:3
7+
container_name: openzipkin_server
78
ports:
89
- 9411:9411
910
networks:
@@ -33,6 +34,7 @@ services:
3334

3435
keycloakdb:
3536
image: postgres:15
37+
container_name: keycloak_postgre_db
3638
volumes:
3739
- postgres_data:/var/lib/postgresql/data
3840
environment:
@@ -58,6 +60,7 @@ services:
5860

5961
internet-banking-config-server:
6062
image: javatodev/internet-banking-config-server
63+
container_name: internet-banking-config-server
6164
ports:
6265
- 8090:8090
6366
networks:
@@ -66,6 +69,7 @@ services:
6669

6770
internet-banking-service-registry:
6871
image: javatodev/internet-banking-service-registry
72+
container_name: internet-banking-service-registry
6973
ports:
7074
- 8081:8081
7175
networks:
@@ -74,6 +78,7 @@ services:
7478

7579
internet-banking-api-gateway:
7680
image: javatodev/internet-banking-api-gateway
81+
container_name: internet-banking-api-gateway
7782
ports:
7883
- 8082:8082
7984
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]
@@ -83,6 +88,7 @@ services:
8388

8489
internet-banking-user-service:
8590
image: javatodev/internet-banking-user-service
91+
container_name: internet-banking-user-service
8692
ports:
8793
- 8083:8083
8894
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]
@@ -92,6 +98,7 @@ services:
9298

9399
internet-banking-fund-transfer-service:
94100
image: javatodev/internet-banking-fund-transfer-service
101+
container_name: internet-banking-fund-transfer-service
95102
ports:
96103
- 8084:8084
97104
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]
@@ -100,6 +107,7 @@ services:
100107
ipv4_address: 172.25.0.4
101108

102109
internet-banking-utility-payment-service:
110+
container_name: internet-banking-utility-payment-service
103111
image: javatodev/internet-banking-utility-payment-service
104112
ports:
105113
- 8085:8085
@@ -110,6 +118,7 @@ services:
110118

111119
core-banking-service:
112120
image: javatodev/core-banking-service
121+
container_name: core-banking-service
113122
ports:
114123
- 8092:8092
115124
entrypoint: ["./wait-for-it.sh", "internet-banking-service-registry:8081", "--timeout=50", "--", "./wait-for-it.sh", "internet-banking-config-server:8090", "--timeout=50", "--", "./wait-for-it.sh", "mysql_core_db:3306", "--timeout=50", "--","java", "-jar", "-Dspring.profiles.active=docker", "/app.jar"]

0 commit comments

Comments
 (0)