From b94fcd956ce532e97a6efc925d024930f01cec16 Mon Sep 17 00:00:00 2001 From: Tim Castillo Date: Fri, 5 Apr 2024 15:21:33 -0400 Subject: [PATCH] [du-dbt] adding starter project to quickstart templates (DEV-168) (#20308) ## Summary & Motivation ## How I Tested These Changes --- .../pages/dagster-dbt/lesson-2/1-requirements.md | 8 +++++++- .../dagster-dbt/lesson-2/2-set-up-the-dagster-project.md | 2 +- examples/project_du_dbt_starter/README.md | 6 ++++-- examples/project_du_dbt_starter/setup.py | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/dagster-university/pages/dagster-dbt/lesson-2/1-requirements.md b/docs/dagster-university/pages/dagster-dbt/lesson-2/1-requirements.md index 97d41353485b5..7c6fd68541985 100644 --- a/docs/dagster-university/pages/dagster-dbt/lesson-2/1-requirements.md +++ b/docs/dagster-university/pages/dagster-dbt/lesson-2/1-requirements.md @@ -20,6 +20,12 @@ To complete this course, you’ll need: python --version pip --version ``` +- **To install `dagster` locally.** We'll be using part of the Dagster CLI to generate a project for us, so we'll need to install it first. Run the following: + + ```shell + pip install dagster + dagster --version + ``` --- @@ -30,5 +36,5 @@ Even if you’ve already completed the Dagster Essentials course, you should sti Run the following to clone the project: ```bash -git clone https://github.com/dagster-io/project-dagster-university -b module/dagster-and-dbt-starter dagster-and-dbt +dagster project from-example --name project-dagster-university --example project_du_dbt_starter ``` \ No newline at end of file diff --git a/docs/dagster-university/pages/dagster-dbt/lesson-2/2-set-up-the-dagster-project.md b/docs/dagster-university/pages/dagster-dbt/lesson-2/2-set-up-the-dagster-project.md index 9a01cbad7f11f..7c257a2b17753 100644 --- a/docs/dagster-university/pages/dagster-dbt/lesson-2/2-set-up-the-dagster-project.md +++ b/docs/dagster-university/pages/dagster-dbt/lesson-2/2-set-up-the-dagster-project.md @@ -10,7 +10,7 @@ After downloading the Dagster University project, you’ll need to make a few ch First, you’ll add a few additional dependencies to the project: -- `dagster-dbt` - Dagster’s integration library for dbt. This will also install `dbt-core` and `dagster` as dependencies. +- `dagster-dbt` - Dagster’s integration library for dbt. This will also install `dbt-core` as a dependency. - `dbt-duckdb` - A library for using dbt with DuckDB, which we’ll use to store the dbt models we create Locate the `setup.py` file in the root of the Dagster University project. Open the file and replace it with the following: diff --git a/examples/project_du_dbt_starter/README.md b/examples/project_du_dbt_starter/README.md index fa6d5e2b185f5..5e1c25318a76d 100644 --- a/examples/project_du_dbt_starter/README.md +++ b/examples/project_du_dbt_starter/README.md @@ -1,6 +1,8 @@ -# dagster_university +## Dagster University: Dagster + dbt -This is a [Dagster](https://dagster.io/) project made to accompany Dagster University coursework. +This is the **starter** version of the [Dagster](https://dagster.io/) project made to accompany Dagster University's [Dagster + dbt course](https://courses.dagster.io/courses/dagster-dbt). + +> **Looking for the finished project for the Dagster + dbt course?** Use the [`module/dagster-and-dbt` branch](https://github.com/dagster-io/project-dagster-university/tree/module/dagster-and-dbt). ## Getting started diff --git a/examples/project_du_dbt_starter/setup.py b/examples/project_du_dbt_starter/setup.py index b9cd22ea50bd7..64b30cf00917c 100644 --- a/examples/project_du_dbt_starter/setup.py +++ b/examples/project_du_dbt_starter/setup.py @@ -4,7 +4,7 @@ name="dagster_university", packages=find_packages(exclude=["dagster_university_tests"]), install_requires=[ - "dagster==1.5.*", + "dagster==1.6.*", "dagster-cloud", "dagster-duckdb", "dagster-dbt",