MarkPhamm/dbt-Fundamental
حول
Learn dbt Fundamentals hands-on: one jaffle_shop project on local DuckDB (default) or Snowflake, with course map, exercises, and Codespaces.
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +١
- خلال شهر
- +٤
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلdbt Fundamentals

Take the interactive lessons: run SQL in your browser, answer quizzes and track your progress, with nothing to install.
Open in Codespaces to skip local setup: Python, dependencies and raw data are installed for you, so you can run dbt build --profiles-dir . from oms_dbt_proj right away. Local setup below still works.
This is the same dbt project with two targets in oms_dbt_proj/profiles.yml. Models, sources, and tests are shared; only the target changes.
- DuckDB (
--target duckdb) — default. Runs locally with no warehouse login. Load raw data withpython duckdb/load_raw.py, then models land induckdb/analytics.duckdb. - Snowflake (
--target snowflake) — same models and sources. Load raw data withsnowflake/raw_data.sql, then setSNOWFLAKE_ACCOUNT,SNOWFLAKE_USER, andSNOWFLAKE_PASSWORD.
From oms_dbt_proj:
dbt build --profiles-dir . --target duckdb
dbt build --profiles-dir . --target snowflake
Setup details are in oms_dbt_proj/README.md.
Start here
Never heard of analytics engineering or dbt? Begin with these five short lessons. They need only a little SQL.
- What is analytics engineering?
- ELT and where dbt fits
- Meet the data
- How dbt builds tables
- Set up the project
Follow the dbt Fundamentals course
Use this project alongside dbt Learn's free dbt Fundamentals course. The course uses the same jaffle_shop data, so each module maps to files you can open and run here. Run dbt build --profiles-dir . once from oms_dbt_proj first.
| Module | Open | Run |
|---|---|---|
| Models | models/staging/, models/marts/ |
dbt run --profiles-dir . |
| Sources | models/staging/*/*_source.yml |
dbt source freshness --profiles-dir . |
| Tests | models/**/*_schema.yml, tests/ |
dbt test --profiles-dir . |
| Documentation | models/**/*_doc.md |
dbt docs generate --profiles-dir . then dbt docs serve --profiles-dir . |
| Deployment | .github/workflows/dbt.yml |
runs on every pull request |
Each module page has a Try it exercise. Exercises edit the project. To undo one, run git checkout -- oms_dbt_proj from the repo root and delete any files the answer created.
Next steps after Fundamentals
Four short chapters, in the order dbt Learn teaches them. Each one runs offline on DuckDB.
Tools
Three tools to see what a dbt project does. QLineage and qdbd only read files and never touch the warehouse. CTE Diff runs queries through dbt on the DuckDB target.
![]() |
![]() |
![]() |
| QLineage: how data flows, model to model and column by column. | qdbd: how tables relate. An ERD built from your dbt tests. | CTE Diff: which rows a SQL change touches, one CTE at a time. |
To query the built models in a browser, use the DuckDB UI.
Reference
- Common dbt commands: cheatsheet.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…


