Imagine you spent 50 US dollars but before that you had converted it from russian rubles into british pounds, then into euros, and finally into US dollars. The question is, how much of the russian rubles you spent to obtain those 50 US dollars?
This small FastAPI webapp answers this question
Open your command prompt (Windows) or terminal (Linux/MacOS) inside the downloaded project.
Presuming you are inside the root of the project. Create python environment and install necessary requirements:
pip install -r requirements.txt
Then initiate the app to connect to it in the browser:
uvicorn app.main:app
Proceed into the browser and follow further instructions from there. The idea is that you need to write request similar to the following in a search line:
.../<amount of spent currency>/<3-letter codes of currencies, separated with '-'>
After a short time, you will receive desired statistics.
You can build the project manually or by utilising dockerhub.
Presuming you are inside the root of the project. Let's build a docker image:
docker build -t <give your name to the project> .
Execute the following command inside the command prompt or the terminal:
docker pull iiakyjiuh/k8s-example
It will download the built image of the project.
Now let's run the container from that image interactively:
docker run -it -p 80:80 <previously specified name>
In order to connect to the instance, fill localhost:80 in a search bar.
N.B. You can stop the container with Ctrl/CMD + C command in the command prompt or the terminal.