Skip to content

zibi94/currency-exchange-office

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

currency-exchange-office

Description

Simple currency exchange office app with two endpoints:
- /rates
    * required query param `currencies` - comma separated list of currencies (min 2)
- /exchange
    * required query params:
        ** from - string
        ** to - string
        ** amount - number

Installation

Required AppId - access for service openexchangerates.org !

Build docker image

export APP_ID=<YOUR_APP_ID>

sudo docker build -t currency-exchange-office .

sudo docker run -dp 8080:8080 -e APP_ID=${APP_ID} currency-exchange-office

Import docker image

export APP_ID=<YOUR_APP_ID>

sudo docker import --change 'ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' \
--change 'CMD ["./main"]' --change 'WORKDIR /app' currency_exchange_office.tar currency-exchange-office

sudo docker container run -dp 8080:8080 -e APP_ID=${APP_ID} currency-exchange-office
Docker image exported wit command
docker export --output="currency_exchange_office.tar" <CONTAINER_ID>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published