- Java >= 11
- Mysql 8
- serve
- For installation of
serve
see: https://www.npmjs.com/package/serve
npm install -g serve
To initialize the database connection, navigate to the src/main/resources/application.properties
files of the user-service
, payment-service
, and order-service
modules. Set up the MySQL connection by configuring the following properties:
spring.datasource.url=jdbc:mysql://localhost:3306/db_name
spring.datasource.username=db_username
spring.datasource.password=db_password
Ensure to replace db_name, db_username, and db_password with your actual database name, username, and password respectively.
- This application require Eureka service registry
cd discovery-server
mvn clean install -Dmaven.test.skip
docker build -t discovery-service:1.0.1 .
docker run -d --name discovery-service -p 8761:8761 discovery-service:1.0.1
http://localhost:8761
- UserService
cd user-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh
- OrderService
cd order-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh
- PaymentService
cd payment-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh
- Demo UI
- To capture traces from above microservice run the sample-ui application using below commands
serve -l 9090 ui
- Access the application using below urls
http://localhost:9090/
Install Otelcol-contribute using this link
- you can use collector configuration file
atatus-collector.yaml
for send OTel data to Atatus.
./otelcol-contrib --config=<Your-Local-path>/atatus-collector.yaml