Skip to content

Commit

Permalink
📝 增加探针服务器readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kongnet committed Aug 14, 2019
1 parent ae70381 commit 5e8c069
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,9 @@ skybase框架的api定义功能主要有以下几点:
### mock服务器
* 1. 运行 npm run demo5 //启动mock服务器,前提需要有nodemon全局安装 npm i -g nodemon
* 2. 启动后 访问 http://127.0.0.1:8888/mock/first
* 3. mock定义在 [您的项目]\node_modules\skybase\demo\5-mock-api\model\api\mock.js
* 3. mock定义在 [您的项目]\node_modules\skybase\demo\5-mock-api\model\api\mock.js

### mysql探针
* 1. 运行 npm run demo9 //启动mysql探针服务器,前提需要有nodemon全局安装 npm i -g nodemon
* 2. 启动后 访问 http://127.0.0.1:13000/skyapi/probe/mysql
![demo9](https://github.com/kongnet/skybase/raw/master/screenShot/demo9.png)
2 changes: 1 addition & 1 deletion demo/9-mysql-chart/service/mysqlProbe.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function getTableColumnSize () {
arr[obj[item.dbName]].children.push({ name: item.tableComment + '\n' + item.tableName + '\n\n' + ((item.rowCount + '').toMoney(2)), value: item.rowCount || 0 })
arrSize[obj[item.dbName]].children.push({ name: item.tableComment + '\n' + item.tableName + '\n\n' + ((item.dataSize + '').toMoney(2)), value: item.dataSize || 0 })
} else {
if (!['performance_schema', 'mysql', 'infomation_schema', 'sys'].includes(item.dbName)) {
if (!['performance_schema', 'mysql', 'infomation_schema', 'sys', 'happyminer_test'].includes(item.dbName)) {
arr.push({ name: item.dbName, children: [] })
arrSize.push({ name: item.dbName, children: [] })
obj[item.dbName] = arr.length - 1
Expand Down
Binary file added screenShot/demo9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e8c069

Please sign in to comment.