Getting Started with Prefect
Prerequisites
Ensure you have Python 3.11, Docker + Docker Compose, and access to the Prefect server before continuing.
Navigate to the Prefect app directory
cd apps/analytics/prefectCopy the environment file
cp env-sample.txt .envFill in DB connection strings and source system API credentials in .env.
Start local services
docker-compose up -dThis starts the Prefect server and worker containers.
Navigate to the Prefect config directory
cd .prefectInstall dependencies
pipenv installDeploy all workflows
prefect deploy --allThis reads prefect.yaml and registers all deployments with the Prefect server.
Open the Prefect UI
Navigate to http://localhost:4200 to monitor flows and deployments.
In production, Prefect runs on Kubernetes. See Infrastructure → Kubernetes → Helm Charts for the prefect chart. The Prefect server, agents, and workers are all Helm-managed.
Last updated on