Skip to content

Commit

Permalink
[ISSUE #856] update README.md (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex authored Dec 3, 2021
1 parent efb7a8d commit bc280e5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ service governance follows the version of Dubbo 2.7, and compatible for Dubbo 2.

- [Vue.js](https://vuejs.org) and [Vue Cli](https://cli.vuejs.org/)
- [dubbo-admin-ui/README.md](dubbo-admin-ui/README.md) for more detail
- Set npm **proxy mirror**: if you have network issue, you can set npm proxy mirror to speedup npm install: add `registry =https://registry.npm.taobao.org` to ~/.npmrc
- Set npm **proxy mirror**:

if you have network issue, you can set npm proxy mirror to speedup npm install:

add `registry=https://registry.npmmirror.com` to ~/.npmrc

### admin Server

Expand All @@ -35,10 +39,9 @@ service governance follows the version of Dubbo 2.7, and compatible for Dubbo 2.
1. Clone source code on develop branch `git clone https://github.com/apache/dubbo-admin.git`
2. Specify registry address in `dubbo-admin-server/src/main/resources/application.properties`
3. Build

> - `mvn clean package -Dmaven.test.skip=true`
- `mvn clean package -Dmaven.test.skip=true`
4. Start
* `mvn --projects dubbo-admin-server spring-boot:run`
* `mvn --projects dubbo-admin-server spring-boot:run`
OR
* `cd dubbo-admin-distribution/target`; `java -jar dubbo-admin-0.1.jar`
5. Visit `http://localhost:8080`
Expand All @@ -47,10 +50,15 @@ service governance follows the version of Dubbo 2.7, and compatible for Dubbo 2.

### Development Setup
* Run admin server project
backend is a standard spring boot project, you can run it in any java IDE

backend is a standard spring boot project, you can run it in any java IDE

* Run admin ui project

run with `npm run dev`.

* visit web page

visit `http://localhost:8081`, frontend supports hot reload.

### Swagger support
Expand Down
22 changes: 15 additions & 7 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

- 使用[Vue.js](https://vuejs.org)作为javascript框架
- [dubbo-admin-ui/README.md](dubbo-admin-ui/README.md)中有更详细的介绍
- 设置 npm **代理镜像** : 如果遇到了网络问题,可以设置npm代理镜像来加速npm install的过程:在~/.npmrc中增加 `registry =https://registry.npm.taobao.org`
- 设置 npm **代理镜像** :

如果遇到了网络问题,可以设置npm代理镜像来加速npm install的过程:

~/.npmrc中增加 `registry=https://registry.npmmirror.com`

### 后端部分

Expand All @@ -33,21 +37,25 @@
1. 下载代码: `git clone https://github.com/apache/dubbo-admin.git`
2.`dubbo-admin-server/src/main/resources/application.properties`中指定注册中心地址
3. 构建

> - `mvn clean package -Dmaven.test.skip=true`
- `mvn clean package -Dmaven.test.skip=true`
4. 启动
* `mvn --projects dubbo-admin-server spring-boot:run`
或者
* `cd dubbo-admin-distribution/target; java -jar dubbo-admin-0.1.jar`
* `mvn --projects dubbo-admin-server spring-boot:run`
或者
* `cd dubbo-admin-distribution/target; java -jar dubbo-admin-0.1.jar`
5. 访问 `http://localhost:8080`
---

### 开发环境配置
* 运行`dubbo admin server`
`dubbo admin server`是一个标准的spring boot项目, 可以在任何java IDE中运行它

`dubbo admin server`是一个标准的spring boot项目, 可以在任何java IDE中运行它

* 运行`dubbo admin ui`

`dubbo admin ui`由npm管理和构建,在开发环境中,可以单独运行: `npm run dev`

* 页面访问

访问 `http://localhost:8081`, 由于前后端分开部署,前端支持热加载,任何页面的修改都可以实时反馈,不需要重启应用。

### Swagger 支持
Expand Down

0 comments on commit bc280e5

Please sign in to comment.