Code Monkey home page Code Monkey logo

data-warehouse-with-apache-airflow-redash-and-dbt's Introduction

Data Pipeline and Reporting Automation

Welcome to a project focused on deploying sensors to businesses and collecting data to provide critical intelligence. In this guide, I'll walk you through deploying our data warehouse, orchestration service, ELT tool, and setting up Redash for data visualization.

Core Tasks

Data Warehouse Setup

  1. Clone the repository:

    git clone https://github.com/biniyam69/Data-Warehouse-with-Apache-Airflow-Redash-and-DBT-.git datawarehouse
    cd datawarehouse
  2. Install required packages:

    pip install -r requirements.txt
  3. Navigate to the Airflow directory and build Docker containers:

    cd airflow
    docker-compose build
  4. Start Airflow and the associated services:

    docker-compose up -d
  5. Access Airflow web server at http://localhost:8080.

Redash Setup

  1. Navigate to the Redash directory:

    cd redash
  2. Create an environment file named .env with the following contents:

    REDASH_HOST=http://localhost/redash
    PYTHONUNBUFFERED=0
    REDASH_LOG_LEVEL=INFO
    REDASH_REDIS_URL=redis://redis:6379/0
    POSTGRES_PASSWORD=password
    REDASH_COOKIE_SECRET=redash-selfhosted
    REDASH_SECRET_KEY=redash-selfhosted
    REDASH_DATABASE_URL={postgresql+psycopg2://username:password@host/dbname}
    

    Replace {postgresql+psycopg2://username:password@host/dbname} with your PostgreSQL database URL.

  3. Create and initialize the Redash database:

    docker-compose run --rm server create_db
  4. Start Redash:

    docker-compose up -d
  5. Access Redash dashboard at http://localhost:5000.

Dataset


We will be using the pNEUMA drone dataset and do analysis on it

Screenshot from 2024-03-20 15-59-43

Screenshot from 2024-03-20 15-59-29


How to get the data?

Screenshots

Airflow & DBT

  • Two Dags App Screenshot

DAGs

  • The Actual Acyclic Graph

    Directed Asyclic Graph

  • DBT tasks with graph App Screenshot

    dbt-dags

Redash Dashboard

  • Redash Dashboard 1

    redash-board I

  • Redash Dashboard 2

    redash-board II

Tech Stacks

  • PostgreSQL
  • Docker
  • Redash
  • Airflow
  • DBT

Authors

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

data-warehouse-with-apache-airflow-redash-and-dbt's People

Contributors

biniyam69 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.