Credit Card Creator simulates the process of requesting a new credit card from a bank.
-
Spring Boot
-
React
-
Kafka
-
Kafka Cluster running on 9092
-
MySQL DB running on 3037
cd docker
docker compose up -d
-
Start card-creator Spring Application
-
Start card-producer Spring Application
-
Start card-consumer Spring Application
-
Start card-creator-web React Application
-
Swagger Documentation
-
card-creator-web
- go to card-creator-web
-
on create card tab put all the data into the form and submit
- to provide valid OIB you can use OIB Generator
-
the POST request will be send to card-producer which is going to serialize the data and push it to Kafka topic
-
once card-consumer notices the topic received a new event it will deserialize the data and send it to card-creator API
-
card creator will store the data in MySQL database with status PROCESSING
-
once we have a generated credit card we want to wait for two minutes (fixed time that simulates a long running process of checking all the requirements)
-
input the same OIB
-
if the two minutes have passed the status should be displayed as DONE