udemy-complete-dbt-bootcamp/code_thingies/dbtlearn/README.md

46 lines
1.3 KiB
Markdown
Raw Normal View History

2023-10-29 18:40:01 +01:00
# 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.
2023-10-30 16:19:14 +01:00
You should also delete the lines under the `dbtlearn` key in the `dbt_project.yml` file.
2023-10-29 18:40:01 +01:00
# 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