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)- If there is a
New Relic
account, log in to New Relic- Generate
api-key
and replace theNEW_RELIC_LICENSE_KEY
value with yours in the .env file - Replace the
NEW_RELIC_ENDPOINT
value with yours in the .env file - In the .env file, if
api-key
andendpoint
are present with the correct values,NEW_RELIC_AGENT_ENABLED
can betrue
andNEW_RELIC_INFRA_AGENT_REPLICAS
can be greater than zero(0)
- Generate
- If there is a
- Run
mvn clean install
ormvn clean package
- 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 withNew Relic Java agent
(Optional)
- Run ./scripts/run.sh to start the application with
- Run
mvn test
ormvn clean install
ormvn clean package
command to run all the tests - Swagger Url: http://localhost:8080/swagger-ui.html
- Test User to Get JWT Token via
/auth/signin
API: - Actuator Url: http://localhost:8080/actuator
- Metric Url: http://localhost:8080/actuator/metrics
- PostgreSQL DB connection details
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Port: 5432
- Zipkin: http://localhost:9411/
- Prometheus: http://localhost:9090/graph
- Grafana: http://localhost:3000/
Email or username: admin
Password: admin
- Add datasource
- Select Prometheus
- Prometheus Url: http://prometheus:9090/
- Save & test
- Kafka-UI: http://localhost:9091/
- https://github.com/newrelic/micrometer-registry-newrelic?tab=readme-ov-file#archival-notice
- https://docs.micrometer.io/micrometer/reference/implementations/new-relic.html