Skip to content

Getting Started

Follow these steps to set up the repository and start developing with a devcontainer.

Prerequisites

  • Install Docker Desktop and ensure Docker is running on your machine.
  • Install VS Code.

This repository includes configuration for a VS Code devcontainer so you can develop and preview docs in an isolated, reproducible environment.

  1. Clone the repo

    git clone https://github.com/RaphCodec/airflow-azure-starter-dags.git
    cd airflow-azure-starter-dags
    
  2. Required VS Code extensions

    • Dev Containers (Microsoft) — provides the "Reopen in Container" command and container workspace features.
    • Docker (Microsoft) — useful for managing containers and images from VS Code.
  3. Open the repo in VS Code and start the devcontainer

    • Open the airflow-azure-starter-dags folder in VS Code.
    • Press Cmd+Shift+P (Ctrl+Shift+P on Windows/Linux) → Dev Containers: Reopen in Container.

The devcontainer will build and start; once it finishes building you can view the Airflow web UI at http://localhost:8080.

Notes:

  • Make sure Docker is running before reopening in the container; devcontainers require the Docker daemon.

Creating DAGs

Use the DAG Generator to create standardized Airflow DAGs with domain-based naming conventions.

Quick Start

Generate an ingestion DAG for sales orders:

cd /opt/airflow
python scripts/create_dag.py \
  --domain sales \
  --name orders \
  --type ingestion \
  --schedule "@daily"

This creates: - dags/sales_orders_ingestion.py — Main DAG file - include/sales/ingestion/pipeline.py — dlt pipeline code - include/sales/ingestion/sources.py — dlt source definitions

DAG Types

  • Ingestion — Extract and load data using dlt (data load tool)
  • Processing — Transform and enrich data with Airflow TaskFlow API
  • Orchestration — Coordinate other DAGs without business logic

Learn More

See the DAG Generator documentation for: - Naming conventions - Detailed examples for each DAG type - Configuration and secrets management - Complete command reference