Install dependencies
make install.deps
In order to run the server locally
go run cmd/main.go
curl 'http://localhost:8000/weather?lat=43.629398&long=-111.773613'
the expected response
{"temperature_feels_like":"moderate","temp":65.82,"conditions_and_alerts":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}]}
Specific temp type
curl 'http://localhost:8000/weather?lat=43.629398&long=-111.773613&tempType=metric'
the expected response
{"temperature_feels_like":"moderate","temp":18.79,"conditions_and_alerts":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}]}%
Generate Mocks
make generate
Run Tests
make test
Available here
docker-compose up