Getting Started with Dashboards ¶
This is a tutorial on how to set up your local development environment.
Local Development (VS Code Dev Containers) ¶
This repository follows Compiler’s cross-platform Dev Containers standard to ensure consistent development environments across macOS, Linux, and Windows.
Note
Read our blog post on Dev Containers to learn more about Compiler’s cross-platform development philosophy.
Prerequisites ¶
- Docker and Docker Compose running locally (check out Podman for a cross-platform OSS management environment).
- Visual Studio Code.
- VS Code Dev Containers Extension.
Getting Started ¶
- Create and configure your local environment file:
cp .env.example .env
Edit .env to set your desired values. The metabase service will connect to the local postgres service using the MB_DB_TYPE/MB_DB_HOST/MB_DB_DBNAME values from this file.
- Open this folder in VS Code.
- When prompted, click “Reopen in Container” (or press
F1/Ctrl+Shift+P/Cmd+Shift+Pand runDev Containers: Reopen in Container). - VS Code will build the dev container and launch all three services:
dev: Your development shell containingterraform,gcloud,pre-commit, and Postgres client tools.postgres: Local PostgreSQL 18 database storing Metabase application state.metabase: Custom Metabase application (socat bridges Cloud SQL Unix socket to TCP 5432 for prod; connects directly to local postgres for dev) connecting to local postgres. Available at http://localhost:3000.