| title | Setting Up your Tutorial Environment |
|---|---|
| sidebarTitle | Environment setup |
In this step you will setup the environment needed for running the tutorial and using Elementary.
Prerequisites
For the tutorial you will need:
- A working Python installation
- pip installer for Python
- Access and credentials to a data warehouse supported by Elementary
We also recommend you work with a Python virtual environment.
Name the project elementary_tutorial:
dbt init elementary_tutorialEnsure that you have a working connection to your DWH. To troubleshoot, you can run dbt debug.
We created a dbt project and sample data for the tutorial. Download the files here.
Copy the following downloaded directories to your local elementary_tutorial project:
- Replace the
/seedsfolder in the project with the downloaded/seedsdirectory. - Replace the
/modelsfolder in the project with the downloaded/modelsdirectory.
Populate the sample data:
dbt seedWe created a dbt project to help us with the tutorial. The project is an extended version of the dbt jaffle shop project. It contains seeds and models that we will use to run Elementary's tests on, and collect artifacts.
In order to load the tutorial project into your dbt cloud environment, you need to fork the repo and connect a new project to it.
To fork the the tutorial repo, go to the tutorial repo and click on the fork button.
To create a new project in dbt cloud, go to Account Settings and click on the New Project button under the Projects section.
Create a new project named elementary_tutorial.
Make sure you name the project elementary_tutorial.
Connect to the forked repository.
After creating a branch, we will populate our DWH with the sample data:
dbt seedNow, let's add Elementary's package into our project.