RUN backend application
cd HearBeat/backend
./gradlew bootRun
Health endpoint: http://localhost:4322/api/v1/health
Swagger address: http://localhost:4322/api/v1/docs
BUILD docker image backend-spring:v1
cd HearBeat/backend
docker build -f Dockerfile -t backend-spring:v1 .
RUN docker image locally using port 4322
docker run
docker run -p 4322:4322 -itd backend-spring:v1
Then you can use health endpoint to check the app status.
cd HearBeat/backend
./gradlew clean test
cd HearBeat/backend
./gradlew bootRun --args='--spring.profiles.active=local'
you can add Run/Debug Configuration in IDEA to achieve the same purpose as this command