Skip to content

Simple Go app that reads temperatures from OpenWeatherMap

License

Notifications You must be signed in to change notification settings

addetz/go-weather-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple Go app that reads temperatures from OpenWeatherMap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages