| Key | Value |
|---|---|
| Course Code | BBT 4206 |
| Course Name | BBT 4206: Business Intelligence II (Week 4-6 of 13) |
| Semester | September to December 2026 |
| Lecturer | Allan Omondi |
| Contact | aomondi@strathmore.edu |
| Note | The lecture contains both theory and practice. This notebook forms part of the practice. It is intended for educational purposes only. Recommended citation: BibTex |
.
├── LICENSE
├── Procfile
├── README.md
├── RecommendedCitation.bib
├── admin_instructions
│ ├── 0_instructions_for_project_setup.md
│ ├── 1_instructions_for_python_installation.md
│ └── 2_instructions_for_project_teardown.md
├── api.py
├── app_server_reverse_proxy_server_setup.md
├── assets
│ └── images
│ ├── Hf-logo-with-title.svg
│ ├── Render-logo-Black.png
│ ├── Streamlit-logo-primary-colormark-darktext.png
│ ├── gunicorn-logo-png-transparent.png
│ └── ssh_student_at_localhost_p_2222.jpeg
├── cleanup_instructions.md
├── docker-compose-dev.yaml
├── docker-compose-prod.yaml
├── docker-compose.yaml
├── dockerfiles
│ ├── Dockerfile.flask-gunicorn-app
│ ├── Dockerfile.nginx
│ └── ubuntu
│ ├── Dockerfile.ubuntu
│ └── entrypoint.sh
├── env.example
├── frontend
│ ├── Proxies.png
│ ├── RequestFlow.jpg
│ ├── api_consumer.py
│ ├── api_consumer_from_dev_flask.py
│ ├── ecommerce_recommender.html
│ ├── index.html
│ ├── mall_customer_segmenter.html
│ ├── sme_credit_risk_classifier.html
│ └── sme_revenue_regressor.html
├── huggingface-spaces-using-gradio
│ ├── app.py
│ └── requirements.txt
├── lab_submission_instructions.md
├── model
│ ├── apriori_recommendation_rules.joblib
│ ├── kmeans_mall_customer_segmentation.joblib
│ ├── lasso_regressor_for_sme_revenue.joblib
│ └── svc_classifier_for_sme_credit_risk.joblib
├── publicly_serving_the_model_for_validation_by_domain_experts.md
├── requirements
│ ├── base.txt
│ ├── colab.txt
│ ├── constraints.txt
│ ├── dev.inferred.txt
│ ├── dev.lock.txt
│ ├── dev.txt
│ └── prod.txt
├── rules
├── runtime.txt
└── streamlit-sharing-using-streamlit
├── app.py
└── requirements.txt
12 directories, 50 files
Refer to the files below, in the order specified, for more details:
- api_consumer.py ← How to use
requestsin Python - api.py ← How to create a RESTish API using Flask in Python
- api_consumer_from_dev_flask.py ← How to consume the RESTish API from a Flask development server
- index.html ← Example of a frontend (HTML, CSS, and JS) that consumes from the API endpoint
- Reverse Proxy Server and Application Server Setup ← How to use Nginx as a reverse proxy server to serve the Flask application through Gunicorn
- Publicly Serving the Model for Validation by Domain Experts ← How to serve the model through Hugging Face, Streamlit, and Render

