This entire application is written in Go! 🥳 The JS code was generated with GopherJS.
$ go install github.com/gopherjs/[email protected]
Sign up to OpenWeatherMap to get your own API key.
export WEATHER_API_KEY=XXX
export PORT=XXX
After setting our variables, we run the server like any old server:
$ go run server.go
Once the server starts up, you can navigate to it in the browser at localhost:8080
or whatever port you have configured.