This project is to show historical rates from https://www.ecb.europa.eu using Clean Architecture and use only the standard library other than database connection.
go version go1.15.2 linux/amd64
- Go SQLite3
- Optional: Docker
- Build Golang files and run the executable
make
./app/eurofxref-ecb
- Or, run using docker
make docker
docker run --name eurofxref-ecb -p 8282:8282 --rm fahimbagar/eurofxref-ecb:1.0
Run test coverage
make test
-
Get forex latest rates: http://localhost:8282/rates/latest
-
Get forex rates at certain dates (format: yyyy-mm-dd): http://localhost:8282/rates/2020-10-27
-
Analyze forex rates: http://localhost:8282/rates/analyze