Logo Lanfrica

sulaimonibrahim/Ecommerce_Project

Domain:

digital infrastructure

Record type:

project
Creator:
sul
Host:
This project serves as a capstone project for the completion of Data Engineering Diploma at Altschool Africa # πŸ›’ E-Commerce Data Pipeline Project ## πŸ“Œ Overview This project implements a complete data pipeline for analyzing an e-commerce dataset. It includes: - **PostgreSQL scripts** for data ingestion - **Airflow DAG** for orchestrating ETL workflows - **dbt models** for data transformation - **SQL-based analysis** to answer key business questions - **Docker** for containerizing all services This setup demonstrates a modern analytics engineering workflow from raw data to insights. --- ## πŸ“ Project Structure ### **PostgreSQL Scripts** Located in the `postgres/` directory: - `init.sql` – Creates database tables - `load_data.sql` – Loads raw e-commerce data ### **Airflow DAG** Located at `airflow/dags/etl_dag.py`: - Manages the end-to-end ETL workflow ### **dbt Project** Located in `ecommerce_dbt_project/`: - **Staging models:** Extract raw source data - **Intermediate models:** Apply business logic - **Final models:** Produce analytical outputs ### **Configuration Files** - `dbt_project.yml` – Configures the dbt project - `profiles.yml` – Defines dbt connection settings - `docker-compose.yml` – Defines PostgreSQL and Airflow services --- ## βš™οΈ Setup and Configuration ### **1. PostgreSQL Setup** Run the scripts inside the `postgres/` directory to initialize the schema and ingest data: ```bash psql -f init.sql psql -f load_data.sql # Getting Started ## Clone the repository git clone github.com cd Ecommerce_Project ## Start Docker Services docker-compose up ## Run dbt models dbt run ## Access Airflow (visit the airflow UI) localhost