ℹ️ This is a demonstration repo used for dbt Learn. Each pull-request relates to one section of the group assignment. Jump to a different stage by checking out the associated branch:
There’s two main ways of working with dbt:
- Edit files and run projects using the web-based Integrated Development Environment (IDE) in dbt Cloud.
- Edit files locally using a code editor, and run projects using the Command Line Interface (dbt CLI).
Please follow the setting up instructions for your chosen development method. Either way, you're going to need credentials for Snowflake!
Here are the statements your database admin will need to run:
create user <user>
password = '<generate_this>'
default_warehouse = transforming
default_role = transformer;
- Ask the data team to add you to the dbt Cloud account as a Developer.
- Click the hamburger menu, and then
Develop
. - Enter your Snowflake credentials
- Verify that you can run dbt by entering the following in the command line input
dbt run
- Clone this github repo
- Install dbt following these instructions
- Copy the example profile to your
~/.dbt
folder (created when installing dbt):
$ cp ./sample.profiles.yml ~/.dbt/profiles.yml
- Populate
~/.dbt/profiles.yml
with the credentials your Snowflake credentials
open ~/.dbt
- Verify that you can connect to Snowflake
$ dbt debug
- Verify that you can run dbt
$ dbt run
This project follows Fishtown Analytics' coding conventions and git guide.
This project follows the structure set out in this article.