47 lines
1.3 KiB
Markdown
47 lines
1.3 KiB
Markdown
# dbt project
|
|
|
|
This is the dbt project for the course.
|
|
|
|
## Set up
|
|
|
|
You need to place a profile for the local postgres instance in `~/.dbt/profiles.yaml`. See below a sample config that should be a good starting point if you follow the instructions in the `database` dir of this project.
|
|
|
|
```yaml
|
|
dbtlearn:
|
|
outputs:
|
|
|
|
dev:
|
|
type: postgres
|
|
threads: 4
|
|
host: localhost
|
|
port: 5432
|
|
user: the user
|
|
pass: the password
|
|
dbname: airbnb
|
|
schema: dev
|
|
|
|
target: dev
|
|
```
|
|
|
|
Once you have set this up and the database as well, you can run `dbt debug` to ensure everything is set up correctly and dbt can reach the database.
|
|
|
|
You should also delete the lines under the `dbtlearn` key in the `dbt_project.yml` file.
|
|
|
|
Also delete the contents of the `models` folder.
|
|
|
|
|
|
# DBT noisy things below
|
|
|
|
### Using the starter project
|
|
|
|
Try running the following commands:
|
|
- dbt run
|
|
- dbt test
|
|
|
|
|
|
### Resources:
|
|
- Learn more about dbt [in the docs](https://docs.getdbt.com/docs/introduction)
|
|
- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers
|
|
- Join the [chat](https://community.getdbt.com/) on Slack for live discussions and support
|
|
- Find [dbt events](https://events.getdbt.com) near you
|
|
- Check out [the blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices
|