Skip to content

PostgreSQL, Zipkin, Prometheus, Grafana, Redis, Kafka and New Relic Integrations with Spring Boot 3, Java 21, and Docker. Integration Tests with Testcontainers for Controller. Unit Tests for Service, and Mapper with Junit 5, and Mockito

Notifications You must be signed in to change notification settings

musabbozkurt/inventory-management-service

Repository files navigation

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


About

PostgreSQL, Zipkin, Prometheus, Grafana, Redis, Kafka and New Relic Integrations with Spring Boot 3, Java 21, and Docker. Integration Tests with Testcontainers for Controller. Unit Tests for Service, and Mapper with Junit 5, and Mockito

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published