Giter Club home page Giter Club logo

currency_chain_converter's Introduction

Description

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

Up and at'em

Open your command prompt (Windows) or terminal (Linux/MacOS) inside the downloaded project.

Local run

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.

Docker run

You can build the project manually or by utilising dockerhub.

Manual image build

Presuming you are inside the root of the project. Let's build a docker image:

docker build -t <give your name to the project> .

Dockerhub image

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.

Run

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.

currency_chain_converter's People

Contributors

iiakyjiuh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.