Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docs/cloud toggle on the first few steps in build-your-first-mo… #878

Merged
merged 1 commit into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions website/docs/tutorial/3-build-your-first-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,32 @@ description: With our starter project setup, it's time to get to the fun part
With our starter project setup, it's time to get to the fun part — building [models](building-models)! We're going to take the query from the [Setting up](/tutorial/setting-up) instructions, and turn it into a model in our dbt project.

## Checkout a new git branch
### dbt Cloud

<CloudCore>
<div>

1. Ensure you're in the Develop interface. If you're not, click the hamburger menu, and then `Develop`. The master branch should now be set to "read only" mode, so you'll need to create a new branch.

2. Click the "create new branch" button, and name your branch `add-customers-model`.

<Lightbox src="/img/checkout-branch-dbt-cloud.png" title="Checkout a new branch" />
</div>
<div>


### dbt CLI
It's a good idea to check out a new git branch when working on new code.

1. Run `git checkout -b add-customers-model` to create a new branch.

<Lightbox src="/img/checkout-branch-dbt-cli.png" title="Checkout a new branch" />

</div>
</CloudCore>

## Build your first model
### dbt Cloud

<CloudCore>
<div>

<LoomVideo id="09919ddb02e44015878c9e93e15fe792" />

1. Ensure you're in the Develop interface. If you're not, click the hamburger menu, and then `Develop`.
Expand All @@ -35,8 +44,8 @@ It's a good idea to check out a new git branch when working on new code.

If you switch back to the BigQuery console you'll be able to `select` from this model.


### dbt CLI
</div>
<div>

<LoomVideo id="2ae3e1c6dfab451ab165ce928c5600c0" />

Expand All @@ -49,7 +58,11 @@ If you switch back to the BigQuery console you'll be able to `select` from this

If you switch back to the BigQuery console you'll be able to `select` from this model.

</div>
</CloudCore>

### FAQs

<FAQ src="checking-logs" />
<FAQ src="which-schema" />
<FAQ src="create-a-schema" />
Expand All @@ -58,6 +71,7 @@ If you switch back to the BigQuery console you'll be able to `select` from this


## Change the way your model is materialized

One of the most powerful features of dbt is that you can change the way a model is materialized in your warehouse, simply by changing a configuration value. Let's see this in action.

:::info Using the `+` sign in your `dbt_project.yml`
Expand Down
Loading