English | 简体中文
注意:当前分支仍在开发中,当前请勿使用。
Apache APISIX 的仪表盘
在线演示,账户密码:admin
。
请参考 用户指南
请参考 使用 Docker 部署
$ git clone https://github.com/apache/apisix-dashboard.git
$ cd apisix-dashboard
manager-api
用于为仪表盘提供接口,就像 Apache APISIX 和仪表盘之间的桥梁。下面是手动构建步骤:
- 需要预先安装
MySQL/Golang
。
# 例如:初始化时,推荐使用更加安全的密码,而不是 123456
$ mysql –uroot –p123456
> source ./api/script/db/schema.sql
- 启动 Apache APISIX
- 检查环境变量
根据您的本地部署环境,检查 ./api/run/run.sh
中的环境变量,如果需要请修改环境变量。
对于大多数中国用户,我们可以使用 Goproxy 加快模块下载速度。
- 构建
$ cd api && go build -o ../manager-api . && cd ..
- 启动
$ sh ./api/run/run.sh &
该项目使用 Ant Design Pro 初始化。以下是一些使用方法的快速指南。
-
确保你的设备已经安装了
Node.js(version 10.0.0+)/Nginx
。 -
安装 yarn。
-
安装依赖:
$ yarn install
- 构建
$ yarn build
-
如果第 4 步成功的话,那么构建后的文件在
/dist
目录下,接着我们推荐使用nginx
处理这些文件,请手动安装nginx
并参考compose/dashboard_conf/nginx.conf
配置。 -
移动
dist
目录下的文件到 nginx 的默认 html 目录,然后在浏览器中访问http://127.0.0.1
。
-
确保你的设备已经安装了
Node.js(version 8.10.0+)/Nginx
。 -
安装 yarn。
-
安装依赖:
$ yarn install
- 如果我们想要修改 API,请参考
config/proxy.ts
文件。
$ yarn install
$ yarn start
-
如果你需要 Vue.js 构建的 dashboard-1.0,请参考 master-vue。
-
关于新版仪表盘和 manager-api 的更多信息请参阅 这里