This project is to show historical exchange rates using Clean Architecture and use only the standard library other than database connection and mocks for testing.
The data was gotten from European Central Bank
- Golang: go version go1.18
- Go SQLite3
- Optional: Docker
$ go mod tidy
$ make run
docker run --name ratesapp -p 8085:8085 --rm air
$make mock
$make test
-
Get forex latest rates: http://localhost:8085/rates/latest
-
Get forex rates at certain dates (format: yyyy-mm-dd): http://localhost:8085/rates/2022-06-24
-
Analyze forex rates: http://localhost:8085/rates/analyze