Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

RUN HeartBeat Backend

1. How to start backend application

RUN backend application

cd HearBeat/backend
./gradlew bootRun

Health endpoint: http://localhost:4322/api/v1/health

Swagger address: http://localhost:4322/api/v1/docs

2. How to build docker image and run locally

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.

3. How to run all tests

cd HearBeat/backend
./gradlew clean test

4. How to run the local environment

cd HearBeat/backend

4.1 Local environment with production 3-party services

./gradlew bootRun --args='--spring.profiles.active=local'

you can add Run/Debug Configuration in IDEA to achieve the same purpose as this command

Morty Proxy This is a proxified and sanitized view of the page, visit original site.