Author: @reneebetina
-
THIS APP IS FOR DEMO ONLY.
-
This is a sample Flask App and it determine your alcohol behavior type
-
Logic to determine drinker type and suggested drinks are explained in the table at the end of this document
What is this project for?
- The app gives you a list of drinks that you can tolerate or might want to try
- The app gives you a list of healthier alternatives (lower alcohol content)
To Run on your local:
-
Install Python
-
Install additional Python Libraries: pip install
flaskflask-restfulpandas -
Go to
main.pyand run on your local -
Flask app will start adn it will give you an address that you can open in your browser
Default Address: http://127.0.0.1:5000
- This app is not connected to any database.
- Data displayed is stored under /data folder. You can add new data there.
INPUT: list of drinks are stored under /data/drinks.csv
PROCESS:
/data/drinks.csv is transformed to a json so that it will be displayed in frontend
Once user answers the test, the methods suggest() and suggest_healthy() will run
OUTPUT: Output will be stored under /data/ouput as csv files output csv file will be transformed to a json and will be displayed in frontend

