Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 687 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 687 Bytes

The Go Weather Checker

This entire application is written in Go! 🥳 The JS code was generated with GopherJS.

Prerequisites

  1. Go 1.21
  2. GopherJS
$ go install github.com/gopherjs/[email protected]

Environment variables

Sign up to OpenWeatherMap to get your own API key.

export WEATHER_API_KEY=XXX
export PORT=XXX

Run it

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.