Web service for validating Bento discovery configuration files.
An all-in-one image with the server and client is available as
ghcr.io/bento-platform/discovery_config_validator:edge
.
- To enable JSON logs (presumably for production), set the environment variable
USE_JSON_LOGS=True
. - To prevent the server from trying to serve client files, set
SERVE_CLIENT=False
. - To change where the server tries to serve client files from, set
CLIENT_PATH
to another path.
- Install
uv
(see https://github.com/astral-sh/uv?tab=readme-ov-file#installation) - Clone the repository:
git clone [email protected]:bento-platform/discovery_config_validator.git
- Install dependencies:
uv install
- Run the server with auto-reloading:
uv run uvicorn --reload dcv_server.main:app
. This will by default run the server and serve client files built using the instructions below.
- Install NodeJS 22.x and NPM.
- Go to the client directory:
cd dcv_client
- Install dependencies:
npm install
- Run the Webpack watch script to build the client and automatically rebuild it upon changes:
npm run watch