Skip to content

Commit a876b3a

Browse files
committed
Add DB instructions.
1 parent 646ea2f commit a876b3a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

_posts/2024-05-01-prefect-pipeline.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,19 @@ pip install prefect prefect-sqlalchemy pandas numpy scikit-learn typer
4444
```
4545

4646
Or, you can follow along using the full working project on [github](https://github.com/terracoil/terracoil-prefect).
47-
It uses [poetry](https://python-poetry.org/) as a package manager, so you'll need to install that.
47+
It uses [poetry](https://python-poetry.org/) as a package manager, so you'll need to install that.
4848

49+
### Postgres DB
50+
* Install postgres for your platform if you haven't already. I recommend [homebrew](https://brew.sh/) if you are on OSX.
51+
* Start up psql and run the following commands
52+
53+
```postgresql
54+
create database prefect_test;
55+
create user prefect with encrypted password 'pr3f3ct';
56+
grant all privileges on database prefect_test to prefect;
57+
```
58+
59+
## About
4960
Understanding Tasks and Flows in Prefect
5061
In [Prefect](https://www.prefect.io/), a "task" is a Python function decorated with the `@task` decorator. Tasks encapsulate a single unit of work and can take inputs, perform computations, and produce outputs. Tasks are the fundamental building blocks of a Prefect workflow.
5162

0 commit comments

Comments
 (0)