A simple weather app that shows the weather at your current location.
This app will retrieve the user's IP and feed it to a P Geolocation API. request to retrieve the latitude and longitude coordinates used by Dark Sky API to show the local weather.
- Retrieve user's location
- Retrieve local time temperature
- Retrieve a short weather summary
- Show everything in UI (probably html page)
For this app to work, you need to have Go installed on your machine. Please follow the instructions on their site on how to do this.
Once you have Go up and running, open a terminal, clone this repo in a new folder, navigate to src/webApp folder and type
cd src
go run main.go
Open your favorite browser and navigate to your http://127.0.0.1:8080/
Run the app in a Docker container as such
docker image build -t myweatherapp .
docker container run -p 9991:8080 myweatherapp
- Official Golang - https://golang.org/
- Building a Golang Docker image - https://bitfieldconsulting.com/golang/docker-image