Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 2.38 KB

README.md

File metadata and controls

64 lines (50 loc) · 2.38 KB

Prerequisites

  • Java 21 should be installed --> export JAVA_HOME=$(/usr/libexec/java_home -v 21)
  • Docker should be installed
  • Maven should be installed
  • pgAdmin/DBeaver can be installed (Optional)
  • New Relic is disabled by default. Properties can be set (Optional)
    • If there is a New Relic account, log in to New Relic
      1. Generate api-key and replace the NEW_RELIC_LICENSE_KEY value with yours in the .env file
      2. Replace the NEW_RELIC_ENDPOINT value with yours in the .env file
      3. In the .env file, if api-key and endpoint are present with the correct values, NEW_RELIC_AGENT_ENABLED can be true and NEW_RELIC_INFRA_AGENT_REPLICAS can be greater than zero(0)

How to start the application

  1. Run mvn clean install or mvn clean package
  2. Run mvn spring-boot:run or ./mvnw spring-boot:run
    • Run ./scripts/run.sh to start the application with New Relic Java agent (Optional)
    • docker-compose --profile start_application up -d --build can be run to create and run a Docker image of the application with New Relic Java agent (Optional)

How to test the application


docker-compose contains the followings


References