This is a collection of dbt projects maintained by the core team of CoW Protocol.
A.1 create a new python environment
python3 -m venv .venv
source .venv/bin/activate
A.2 install requirements
pip3 install -r requirements.txt
B.1 open a Dev Container - a virtual env with the right requirements will be automatically created (first time)/loaded (next times)
-
create a .env file and fill in your credentials like in the .env_example file
-
load the environmental variables
export $(cat .env | xargs)
-
navigate to the folder where the dbt models and profiles are
cd dbt_models/
all the dbt related commands need to be run from inside that folder -
Install dbt pacakages
dbt deps
-
run dbt
dbt build --debug
(optional e.g: --select stg_backend_data__competition_auctions) -
Run the visualization Interface
dbt docs generate
dbt docs serve