This is a collection of dbt projects maintained by the core team of CoW Protocol.
-
create a new python environment
python3 -m venv .venv
source .venv/bin/activate
-
install requirements
pip3 install -r requirements.txt
-
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 isualization Interface
dbt docs generate
dbt docs serve