Customer-Purchase-Prediction-ML-System

(โ˜… 248)

A turnkey MLOps pipeline demonstrating how to go from raw events to real-time predictions at scale.

  • .dockerignore
  • .env.example
  • .gitattributes
  • .gitignore
  • .pre-commit-config.yaml
  • .python-version
  • docker-compose.cdc.yaml
  • docker-compose.data-lake.yaml
  • docker-compose.dwh.yaml
  • docker-compose.grafana.yaml
  • docker-compose.kafka.yaml
  • docker-compose.model-registry.yaml
  • docker-compose.nginx.yaml
  • docker-compose.observability.yaml
  • docker-compose.online-store.yaml
  • docker-compose.ray.yaml
  • docker-compose.serving.yaml
  • docker-compose.superset.yaml
  • LICENSE
  • Makefile
  • pyproject.toml
  • README.md
  • uv.lock

# Installation Guide

1. Get the code
git clone https://github.com/bmd1905/Customer-Purchase-Prediction-ML-System

Downloads the entire project code from GitHub to your computer.

cd Customer-Purchase-Prediction-ML-System

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f docker-compose.cdc.yaml up -d --build

Runs the command against the services defined in the compose file.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -r src/cdc/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

jupyter notebook

Launches Jupyter in your browser so you can open and run the notebook (.ipynb) files.

โœ… If it runs without errors and prints output in the terminal, it worked.

4. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make up-network

Compiles the code based on the generated build configuration to produce an executable.

make up-kafka

Compiles the code based on the generated build configuration to produce an executable.

make up-cdc

Compiles the code based on the generated build configuration to produce an executable.

make schema_validation

Compiles the code based on the generated build configuration to produce an executable.

make alert_invalid_events

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation