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
Java 21
should be installed --> export JAVA_HOME=$(/usr/libexec/java_home -v 21)
Docker
should be installedMaven
should be installedpgAdmin
/DBeaver
can be installed (Optional)New Relic
is disabled by default. Properties can be set (Optional)
New Relic
account, log in to New Relic
api-key
and replace the NEW_RELIC_LICENSE_KEY
value with yours in the .env fileNEW_RELIC_ENDPOINT
value with yours in the .env fileapi-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)mvn clean install
or mvn clean package
mvn spring-boot:run
or ./mvnw spring-boot:run
New Relic Java agent
(Optional)docker-compose --profile start_application up -d --build
can be run to create and run a Docker image of theNew Relic Java agent
(Optional)mvn test
or mvn clean install
or mvn clean package
command to run all the tests/auth/signin
API:
username: admin_user
password: test1234
Swagger
docker-compose
contains the followingsPOSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Port: 5432
Email or username: admin
Password: admin