ydb-embedded-ui
Local viewer for YDB clusters
How to work with this repo
Development
- Run on a machine with Docker installed:
docker pull cr.yandex/yc/yandex-docker-local-ydb`
docker run --hostname localhost -e YDB_ALLOW_ORIGIN="http://localhost:3000" -dp 2135:2135 -dp 8765:8765 cr.yandex/yc/yandex-docker-local-ydb
- Run the frontend app in the development mode, via invoking
npm run dev
- Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.
You will also see any lint errors in the console.
Making a production bundle.
Base command npm run build
builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
To test production bundle with latest YDB backend release, do the following:
- Build a production bundle with a few tweaks for embedded version:
npm run build:embedded
. - Invoke
docker run -it --hostname localhost -dp 2135:2135 -p 8765:8765 -v ~/projects/ydb-embedded-ui/build:/ydb_data/node_1/contentmonitoring cr.yandex/yc/yandex-docker-local-ydb:latest
- Open embedded YDB UI to view it in the browser.