How to Run or Build HertzBeat?
Getting HertzBeat code up and running
To get HertzBeat code running on your development tools, and able to debug with breakpoints. This is a front-end and back-end separation project. To start the local code, the back-end manager and the front-end web-app must be started separately.
Backend start
Requires
maven3+
,java17
andlombok
environments(Optional) Modify the configuration file:
manager/src/main/resources/application.yml
Execute under the project root directory:
mvn clean install -DskipTests
Start
springboot manager
service:manager/src/main/java/org/apache/hertzbeat/manager/Manager.java
Frontend start
Need
Node Yarn
Environment, Make sureNode.js >= 18
Cd to the
web-app
directory:cd web-app
Install yarn if not existed
npm install -g yarn
Install Dependencies:
yarn install
oryarn install --registry=https://registry.npmmirror.com
inweb-app
Install angular-cli globally:
yarn global add @angular/cli@15
oryarn global add @angular/cli@15 --registry=https://registry.npmmirror.com
After the local backend is started, start the local frontend in the web-app directory:
ng serve --open
Browser access to localhost:4200 to start, default account/password is admin/hertzbeat
Build HertzBeat binary package
Requires
maven3+
,java17
,node
andyarn
environments.
Frontend build
Need
Node Yarn
Environment, Make sureNode.js >= 18
Cd to the
web-app
directory:cd web-app
Install yarn if not existed
npm install -g yarn
Install Dependencies:
yarn install
oryarn install --registry=https://registry.npmmirror.com
inweb-app
Build web-app:
yarn package
Backend build
Requires
maven3+
,java17
environmentsExecute under the project root directory:
mvn clean package -Prelease
The HertzBeat install package will at dist/hertzbeat-{version}.tar.gz
Collector build
Requires
maven3+
,java17
environmentsExecute under the project root directory:
mvn clean install
Cd to the
collector
directory:cd collector
Execute under
collector
directory:mvn clean package -Pcluster
The HertzBeat collector package will at dist/hertzbeat-collector-{version}.tar.gz