$ git clone https://github.com/apache/apisix-dashboard.git
$ cd apisix-dashboard
The manager-api
is used to provide APIs for Dashboard, just like a bridge between the Apache APISIX and the Dashboard. Here are the steps to build it manually:
- We need
Go
1.13+ to be preinstalled.
NOTE: You also need to install Lua
5.1+ if you want to use the Plugin Orchestration, we will improve this part and omit Lua's dependency in the future.
- Check environment variables
- enable Go MODULE
$ go env -w GO111MODULE=on
- According to your local deployment environment, check the environment variables in
./api/run.sh
, modify the environment variables if needed. For example, change the ETCD endpoints to your ETCD instances work with APISIX:
export APIX_ETCD_ENDPOINTS="127.0.0.1:2379"
If you have multiple instances, please use commas to separate:
export APIX_ETCD_ENDPOINTS="127.0.0.1:2379,127.0.0.1:3379"
- For most users in China, we could use Goproxy to speed up downloading modules.
$ go env -w GOPROXY=https://goproxy.cn,direct
- Build and Run
$ ./api/run.sh &
This project is initialized with Ant Design Pro. The following are some quick guides for how to use.
- Make sure you have
Node.js(version 10.0.0+)/Nginx
installed on your machine. - Install yarn.
- Install dependencies:
$ yarn install
- Build
$ yarn build
-
The bundled files are under
/dist
folder if the step 4 is successful. -
Move files under
dist
folder to manager-api'sdist
folder, then visithttp://127.0.0.1:8080
in your browser,8080
is the default listen port of manager-api.