DBT jaffel shop connected to snowflake database
The raw data consists of customers, orders, and payments, with the following entity-relationship diagram:
To get up and running with this project:
-
Install dbt using these instructions.
-
Clone this repository.
-
Open
_resource
folder, and run load_data.sql and user.sql code in any cloud providers (I am using Snowflake data warehouse). -
Change into the
jaffleshop
directory from the command line:
$ cd jaffle_shop
-
Set up a profile called
jaffleshop
to connect to a data warehouse by following these instructions. If you have access to a data warehouse, you can use those credentials – we recommend setting your target schema to be a new schema (dbt will create the schema for you, as long as you have the right privileges). If you don't have access to an existing data warehouse, you can also setup a local postgres database and connect to it in your profile. -
Ensure your profile is setup correctly from the command line:
$ dbt debug
- Run the models:
$ dbt run
- Test the output of the models:
$ dbt test
- Generate documentation for the project:
$ dbt docs generate
- View the documentation for the project:
$ dbt docs serve