- Classic lauch
- Use Docker environment
Obtain your API Key from https://www.exchangerate-api.com
- Enter to the project directory
$ cargo build --release- Add an environment variable named API_KEY which contains your api key to https://www.exchangerate-api.com API
$ export API_KEY=111111111111111111111111- Enter to the /target/release
$ cd /target/release- You can use the --help flag to see how to use the program
$ ./exchange-rate-api --help $ ./exchange-rate-api PLN USD 1000.123
6. List all available currencies
$ ./exchange-rate-api --codes
6. List all available currencies and the current exchange rates against a single currency:
$ ./exchange-rate-api USD- Pull docker image from https://hub.docker.com/repository/docker/bgarbach/exchange_rate_api/general or use:
$ docker pull bgarbach/exchange_rate_api- You can use the --help flag to see how to use the program
$ docker run -e API_KEY=xxxxxxx bgarbach/exchange_rate_api --help- Default mode
$ docker run -e API_KEY=xxxxxxx bgarbach/exchange_rate_api PLN USD 1000.123- List all available currencies
$ docker run -e API_KEY=xxxxxxx bgarbach/exchange_rate_api --codes- List all available currencies and the current exchange rates against a single currency:
$ docker run -e API_KEY=xxxxxxx bgarbach/exchange_rate_api USD
