Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.08 KB

File metadata and controls

41 lines (29 loc) · 1.08 KB

payment-service

Run tests

$ ./mvnw clean verify

Run locally

docker-compose -f docker/docker-compose.yml up -d
./mvnw spring-boot:run -Dspring-boot.run.profiles=local

Using Testcontainers at Development Time

You can run TestPaymentApplication.java from your IDE directly. You can also run the application using Maven as follows:

./mvnw spotless:apply spring-boot:test-run

Running only this Service Locally - Tips

To run only the Payment Service locally with clean logs, you can follow these steps:

  1. start the Kafka and Postgres servers by using below command(You should be inside appropriate directory and docker setup should be done :- ) :
docker compose up kafka postgres
  1. In IntelIj Open Modify Run Configuration from Main class: com.example.paymentservice.TestPaymentApplication Set the Environment variable value to
SPRING_PROFILES_ACTIVE=local

Useful Links