Keep in mind that GetLocation
method won't work as expected when deployed because it will fetch the location of the server, not client.
This project serves as proxy server for Dark Sky API
because they disable cors as a security precaution.
.env file should look like this:
DARKSKY_API_KEY=123
IPSTACK_API_KEY=123
PORT=5000
without docker:
go run main.go
or with docker:
docker build -t <image-name> .
docker run -p 5000:5000 <image-name>
This project is MIT licensed.