This repo provides a production example of a dbt project containting metrics and semantic models. These resources are required to use the dbt semantic layer. To get started, follow the instructions below:
git clone [email protected]:dbt-labs/jaffle-sl-template.git
cd jaffle-sl-template
Install metricflow, et al within a virtual environment:
python -m venv .env
source .env/bin/activate
pip install "dbt-metricflow[<YOUR_DBT_ADAPTER_NAME>]"
dbt --version
mf --version
- Update the
profile
withindbt_project.yml
to refer to one of your pre-existing profile
dbt debug
dbt deps
dbt seed
dbt build --exclude path:jaffle-data
mf validate-configs
mf query --metrics large_orders