Tutorials
Supporting dynamic data structures
Deploy the Query Engine

Deploy the query engine

Before we can send our dynamic configs to the Query Engine, we first need to set it running! So let's go through the steps below to get it working!

Vizzly CLI

To get started, sign in to your Vizzly account (opens in a new tab), and visit the CLI authentication page (opens in a new tab). On that page, you will find two CLI commands, one to install the Vizzly CLI, and the other to authenticate the CLI. After running those commands, return here to continue the setup process.

Project setup

In this step, we will set up all the main resources that you need for your Vizzly integration in a single command.

vizzly setup -i postgres

You will now have

Deployment

Now we need to deploy the Vizzly Query Engine. If you are doing this for the first time, we strongly recommend doing this for your local or staging environment.

Follow either one these guides to deploy your Vizzly Query Engine to your chosen environment;

Connecting to your data

To connect the Vizzly Query Engine to your data, you will need to navigate to the /connect page of your deployed Query Engine. Once your connection has been established, the /status page will tell you it is ready to start accepting queries!

Alternatively connecting via environment variables

If you would prefer to provide your connection credentials through environment variables, we support that too;

Postgres connection environment variables

VIZZLY_CLIENT

Set this environment variable value to "postgres".

VIZZLY_POSTGRES_PASSWORD

Set the password to use in the connection to your postgres database.

VIZZLY_POSTGRES_DATABASE

Set the name of the database to use in the connection to your postgres database.

VIZZLY_POSTGRES_USER

Set the username to use in the connection to your postgres database.

VIZZLY_POSTGRES_HOST

Set the host to use in the connection to your postgres database.

VIZZLY_POSTGRES_PORT

Set the port to use in the connection to your postgres database.

PG_CONNECTION_STRING

Set the connection credentials using a single connection string.

These integation specific variables are in addition to the common environment variables.

Status check!

To make sure the Query Engine is running correctly, we can check the status page which will provide information as to the health of the database connection.

For example, if you are running the Query Engine locally on http://localhost:8000, then visit that URL in the browser and you should find yourself redirected to /status which shows the status of the Query Engine.