Skip to content

This repository contains a DBT (Data Build Tool) project for e-commerce data analysis. This project is designed to facilitate the management and transformation of data from various e-commerce sources into clean data models that can be used for further analysis.

Notifications You must be signed in to change notification settings

nabilraihann/dbt-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBT E-commerce

dbt-logo

Description

This repository contains a DBT (Data Build Tool) project for e-commerce data analysis. This project is designed to facilitate the management and transformation of data from various e-commerce sources into clean data models that can be used for further analysis.

Project Structure

dbt-ecommerce/
├── README.md
├── requirements.txt
└── dbt_ecommerce/
   ├── analysis/
   ├── data/
   ├── dbt_project.yml
   ├── logs/
   ├── models/
   │   ├── stg/
   │   └── mart/
   ├── snapshots/
   ├── tests/
   └── target/

Prerequisites

Before running this project, ensure you have followed the instructions in this repository: ClickHouse E-commerce to activate your ClickHouse instance as an OLAP database.

Additionally, make sure you have installed:

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/nabilraihann/dbt-ecommerce.git
    cd dbt-ecommerce
  2. Create a virtual environment using conda and activate it:

    conda create --name dbt-ecommerce python=3.9
    conda activate dbt-ecommerce
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Configure the profiles.yml file on your .dbt directory to set up the database connection. Example configuration:

    dbt_ecommerce:
      target: dev
      outputs:
        dev:
          type: clickhouse
          schema: dwh
          user: default
          password: ""

Usage

Running DBT

To run the DBT project and build the models:

cd dbt_ecommerce
dbt run

Documentation

To generate project documentation:

dbt docs generate

To serve the documentation locally:

dbt docs serve

DBT dag result

dag

About

This repository contains a DBT (Data Build Tool) project for e-commerce data analysis. This project is designed to facilitate the management and transformation of data from various e-commerce sources into clean data models that can be used for further analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published