Skip to content

Metabase in Local Demo environments

Craig Reese edited this page Sep 24, 2024 · 1 revision

Metabase in Local

After performing initial application setup, use the command make setup-metabase to run the local environment setup script. This will create an Admin and Basic user, remove the sample database, and add the Caseflow and VACOLS DB connection. To access Metabase, go to localhost:3002 and login with the credentials [email protected]/caseflow1 or [email protected]/password1 (these are set in the initialization script). At this point you are able to use Metabase in the same way that it is used in higher environments.

The basic setup does not include any dashboards, views, or other Metabase-specific objects. Those can be added via the UI or by using the Metabase API. To automate adding those objects when initializing Metabase, create a new shell script in the ./metabase folder with the API commands and add the script execution to the Makefile command setup-metabase.

Metabase in Demo

The Metabase instance is automatically created and initialized as part of Demo deployments and can be accessed by going to /metabase. The credentials for logging in are the same as for the local instance.

To automate adding extra objects to Metabase in Demo, new shell script executions need to be added to the startup script ./docker-bin/startup.sh after the initialization script runs. It isn't recommended to add them into the Demo initialization script. If they do not need to be executed on initialization, the scripts can be added to the ./metabase/ folder and run from the command line of the respective Demo EC2 instance.

Clone this wiki locally