The Config-UI Application is a React.js SPA (Single-Page-Application) that manages the setup and configuration of a DevLake Instance.
- React
- Antd
- Vite
- TypeScript
- Yarn3
In order to develop on this project you will need a properly working React Development Environment.
Install Package Dependencies before attempting to start the UI. The application will not start unless all packages are installed without errors.
$ yarn
❗ Please ensure the DevLake API is online before starting the UI, otherwise the application will remain in offline mode and errors will be displayed.
$ yarn start
Server will listen on http://localhost:4000
To Build static and minified production assets to the dist/ directory.
$ yarn build
Build production assets and listen to emulate a production environment. This is to verify minified bundled/assets are operating correctly.
$ yarn preview
For actual production use, the Docker Image for Config-UI should be used as outlined in the main project README.md
The image serves Grafana under /grafana/ (runtime variables, read by nginx.sh):
GRAFANA_ENDPOINT(host:port) andGRAFANA_ENDPOINT_PROTO(defaulthttp): Grafana is proxied under/grafana/.USE_EXTERNAL_GRAFANA=true:/grafana/is not proxied but redirected (302) toGRAFANA_ENDPOINT, which is then the full base URL of the external Grafana, e.g.https://grafana.example.comorhttps://example.com/grafana. The path and query after/grafanaare kept, so/grafana/d/<uid>/<slug>?orgId=1redirects to<GRAFANA_ENDPOINT>/d/<uid>/<slug>?orgId=1. A trailing slash inGRAFANA_ENDPOINTis ignored.
The external Grafana needs the DevLake dashboards with the same UIDs (MySQL: e.g. KXWvOFQnz; PostgreSQL: the same UID
with a -pg suffix).