Exchange rate API built with Go leveraging a third-party API
Make sure you have go installed on your machine
- go
download from the [Go official site](https://go.dev/dl/)
- Get a Free API key at https://exchangesrateapi.com/
- Clone the repository
- Install go packages
go mod install
- Make a copy of .example.env file and rename to .env like so:
cp .example.env .env
- Update the env file with the right values as applicable
To start the app, please run: (tested on mac)
make run
or:
go run cmd/main.go
to specify multiple to currencies: send them as a comma seperated value like so: (USD,GBP) e.g
http://localhost:8060/api/v1/exchange-rates?fromCurrency=EUR&toCurrency=USD,GBP