Skip to content

Mega-Barrel/dbt-jaffel-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbt-jaffel-shop

DBT jaffel shop connected to snowflake database

The raw data consists of customers, orders, and payments, with the following entity-relationship diagram:

Jaffle Shop ERD

image

Project Initialization

To get up and running with this project:

  1. Install dbt using these instructions.

  2. Clone this repository.

  3. Open _resource folder, and run load_data.sql and user.sql code in any cloud providers (I am using Snowflake data warehouse).

  4. Change into the jaffleshop directory from the command line:

$ cd jaffle_shop
  1. 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.

  2. Ensure your profile is setup correctly from the command line:

$ dbt debug
  1. Run the models:
$ dbt run
  1. Test the output of the models:
$ dbt test
  1. Generate documentation for the project:
$ dbt docs generate
  1. View the documentation for the project:
$ dbt docs serve

About

DBT jaffel shop connected to snowflake database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published