- Clone this repo
docker login
(in case ofGot permission denied while trying to connect...
thensudo chmod 666 /var/run/docker.sock
)- Create file
.env
and put there token (from https://fixer.io/) and port, it should look like this:
TOKEN=abcd
PORT=5004
(optional) change PORT variable in run.sh
script
bash ./run.sh
- To check:
curl "localhost:5004/get_rates?curr_from=aed&curr_to=usd"
{
"curr_from": "USD",
"curr_to": "AED"
}
{
"rate": 0.2281707346846669
}