CoffeBreak is a Flask-based web application that predicts the type of caffeine drink based on user input. It uses a trained machine learning model to make predictions and stores the input data in a Cassandra database.
Make sure you have the following dependencies installed:
- Python 3.x
- Flask
- NumPy
- Pandas
- scikit-learn
- Casssandra driver for Python
- Clone this repository to your local machine:
git clone https://github.com/your_username/your_repository.git
- Install the required dependencies using pip:
pip install -r requirements.txt
- Run the Flask application:
python main.py
- Open your web browser and go to http://localhost:5000 to access the application.
- Enter the details of your caffeine drink (name, volume, calories, and caffeine) and click "Find drink type". 4.The predicted drink type will be displayed on the page along with a description.
A DockerCompose file of the CoffeBreak application is available on this repository. You can run the application inside Docker containers using the following command:
dockercompose up ./path/to/dockercompose.yaml
Remember to build docker images from docker files with command:
docker build -t image_name ./path/to/Dockerfile
A Kubernetes deployment and service configuration file is available in the repository (coffe_break.yaml). You can use this file to deploy the CoffeBreak application on a Kubernetes cluster using the following command:
kubectl apply -f coffee_break.yaml
The application will be deployed as a service that can be accesible using:
kubectl port-forward -n caffeine deployment/caffeine-ws 8080:5000
Then open your browser and go to "http://localhost:8080"
Here are the links to the Docker and Kubernetes versions and model: