Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1009 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 1009 Bytes

🥪 The Jaffle Shop 🦘

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:

Clone the repo.

git clone [email protected]:dbt-labs/jaffle-sl-template.git
cd jaffle-sl-template

Install Metricflow

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

Test the connection

  1. Update the profile within dbt_project.yml to refer to one of your pre-existing profile
dbt debug

Load data

dbt deps
dbt seed

Run your dbt project, and query metrics

dbt build --exclude path:jaffle-data
mf validate-configs
mf query --metrics large_orders