Files
hertzbeat/web-app/README.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

<h1 align="center">HertzBeat</h1>
> 前端工程
2021-12-26 15:08:54 +08:00
**面向开发者,易用友好的高性能监控云服务**
## 本地启动
### npm 方式
1. 需要nodejs npm环境
下载地址https://nodejs.org/en/download
2. 在前端工程目录web-app下执行 `npm install --registry=https://registry.npm.taobao.org`
3. 全局安装angular-cli `npm install -g @angular/cli@12 --registry=https://registry.npm.taobao.org`
4. 待本地后端启动后在web-app目录下启动本地前端 `ng serve --open`
### yarn 方式
1. 需要nodejs npm环境
下载地址https://nodejs.org/en/download
2. 安装yarn `npm install -g yarn`
3. 在前端工程目录web-app下执行 `yarn install`
4. 全局安装angular-cli `npm install -g @angular/cli@12 --registry=https://registry.npm.taobao.org`
5. 待本地后端启动后在web-app目录下启动本地前端 `ng serve --open`
2021-12-26 15:08:54 +08:00
## 编译打包
web-app目录下执行
2021-12-26 15:08:54 +08:00
```ng build --prod --base-href /console/```
manager目录下执行
```mvn package```
生成的安装包在 manager/target/hertz-beta.tar.gz