Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Translate part of documentation development.md under zh-cn directory from en to zh-cn #1995

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,53 @@ sidebar_label: 运行编译

### 前端启动

1. 需要 `nodejs yarn` 环境, Make sure `Node.js >= 18`
1. 需要 `nodejs yarn` 环境, 版本要求 `Node.js >= 18`

2. 进入 `web-app` 目录: `cd web-app`

3. 安装yarn: `npm install -g yarn`

4. 在前端工程目录 `web-app` 下执行: `yarn install` or `yarn install --registry=https://registry.npmmirror.com` in `web-app`
4. 在前端工程目录 `web-app` 下执行: `yarn install` 或者 `yarn install --registry=https://registry.npmmirror.com`

5. 全局安装 `angular-cli`: `yarn global add @angular/cli@15` or `yarn global add @angular/cli@15 --registry=https://registry.npmmirror.com`

6. 待本地后端启动后,在web-app目录下启动本地前端 `ng serve --open`

7. 浏览器访问 localhost:4200 即可开始,默认账号密码 admin/hertzbeat**
7. 浏览器访问 localhost:4200 即可开始,默认账号密码 admin/hertzbeat

## Build HertzBeat binary package
## 生成二进制包

> Requires `maven3+`, `java17`, `node` and `yarn` environments.
> 需要 `maven3+`, `java17`, `node` `yarn` 环境.

### Frontend build
### 前端打包

1. Need `Node Yarn` Environment, Make sure `Node.js >= 18`
1. 需要 `Node Yarn` 环境, 版本要求 `Node.js >= 18`

2. Cd to the `web-app` directory: `cd web-app`
2. 切换到 `web-app` 目录: `cd web-app`

3. Install yarn if not existed `npm install -g yarn`
3. 安装 yarn: `npm install -g yarn`

4. Install Dependencies: `yarn install` or `yarn install --registry=https://registry.npmmirror.com` in `web-app`
4. 安装本项目依赖: `yarn install` `yarn install --registry=https://registry.npmmirror.com`

5. Build web-app: `yarn package`
5. 打包: `yarn package`


### Backend build
### 后端打包

1. Requires `maven3+`, `java17` environments
1. 需要 `maven3+`, `java17` 环境

2. Execute under the project root directory: `mvn clean package -Prelease`
2. 在项目根目录运行: `mvn clean package -Prelease`

The HertzBeat install package will at `dist/hertzbeat-{version}.tar.gz`
HertzBeat 包将生成为 `dist/hertzbeat-{version}.tar.gz`

### Collector build
### 采样器打包

1. Requires `maven3+`, `java17` environments
1. 需要 `maven3+`, `java17` 环境

2. Execute under the project root directory: `mvn clean install`
2. 在项目根目录运行: `mvn clean install`

3. Cd to the `collector` directory: `cd collector`
3. 切换到 `collector` 目录: `cd collector`

4. Execute under `collector` directory: `mvn clean package -Pcluster`
4. `collector` 目录下执行: `mvn clean package -Pcluster`

The HertzBeat collector package will at `dist/hertzbeat-collector-{version}.tar.gz`
HertzBeat 采样器包将生成为 `dist/hertzbeat-collector-{version}.tar.gz`
Loading