Hello there! ✋🏻
This is a calculator to optimize product sales by minimizing production cost. To start running this app, be sure you have python and PIP installed. Also, you have to install these 4 python libraries:
- numpy
- pandas
- scipy
- flask
If you don't know whether they are installed or not, run these codes in your terminal (for mac):
For PIP: python -m pip --version
For numpy: python -m pip show numpy
For pandas: python -m pip show pandas
For scipy: python -m pip show scipy
For flask: python -m pip show flask
To install these libraries type:
For numpy: python -m pip install numpy
For pandas: python -m pip install pandas
For scipy: python -m pip install scipy
For flask: python -m pip install flask
To start the app, run flask run
in your terminal if you are using your mac or python3 -m flask run
if you are using windows.
- Start by adding your product by typing a product inside the box "Enter product name".
- Click "add to product recipe to list". You can see the list of all your saved products in box on the right.
- Start adding your ingredients. Every product recipe have a set amount of ingredients.
(If a product does not require a certain ingredient, input "0" on it's product unit).
- Add each products recipe it's share of the whole sale. This can be an arbitrary amount.
- Click "Calculate!" and see the results!
Have fun! 🥳