{"id":37162238,"url":"https://github.com/jeremy-miller/weather","last_synced_at":"2026-01-14T19:18:35.228Z","repository":{"id":57612134,"uuid":"97790923","full_name":"jeremy-miller/weather","owner":"jeremy-miller","description":"API server for retrieving the weather of a particular city","archived":false,"fork":false,"pushed_at":"2018-02-28T06:00:05.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:49:09.033Z","etag":null,"topics":["tutorial"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremy-miller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T04:36:39.000Z","updated_at":"2021-05-28T17:47:49.000Z","dependencies_parsed_at":"2022-08-27T09:50:50.323Z","dependency_job_id":null,"html_url":"https://github.com/jeremy-miller/weather","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeremy-miller/weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-miller%2Fweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-miller%2Fweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-miller%2Fweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-miller%2Fweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremy-miller","download_url":"https://codeload.github.com/jeremy-miller/weather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-miller%2Fweather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tutorial"],"created_at":"2026-01-14T19:18:34.761Z","updated_at":"2026-01-14T19:18:35.214Z","avatar_url":"https://github.com/jeremy-miller.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jeremy-miller/weather.svg?branch=master)](https://travis-ci.org/jeremy-miller/weather)\n[![Coverage Status](https://coveralls.io/repos/github/jeremy-miller/weather/badge.svg?branch=master)](https://coveralls.io/github/jeremy-miller/weather?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jeremy-miller/weather)](https://goreportcard.com/report/github.com/jeremy-miller/weather)\n[![MIT Licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jeremy-miller/weather/blob/master/LICENSE)\n[![Go Version](https://img.shields.io/badge/Go-1.8-blue.svg)]()\n\n# Weather\nAPI server for retrieving the weather of a particular city.\nThis project is based on [this](http://howistart.org/posts/go/1/) tutorial.\n\n## Table of Contents\n- [Motivation](#motivation)\n- [Usage](#usage)\n  - [Prerequisites](#prerequisites)\n  - [Build](#build)\n  - [Static Code Analysis](#static-code-analysis)\n  - [Test](#test)\n  - [Run](#run)\n  - [Example Call](#example-call)\n- [License](#license)\n\n## Motivation\nI created this project to try Go.\n\n## Usage\nThis implementation uses a Docker container to isolate the execution environment.\n\n### Prerequisites\n- [Docker](https://docs.docker.com/engine/installation/)\n\n### Build\nBefore interacting with the weather server, the Docker container must be built: ```docker build -t jeremymiller/weather .```\n\n### Static Code Analysis\nTo run the [vet](https://golang.org/cmd/vet/) static code analysis tool, execute the following command: ```docker run -it --rm jeremymiller/weather go tool vet *.go```\n\nTo run the [golint](https://github.com/golang/lint) code linter, execute the following command: ```docker run -it --rm jeremymiller/weather golint```\n\n### Test\nTo run the Weather tests, execute the following command: ```docker run -it --rm jeremymiller/weather go test```\n\n### Run\n1. Start the weather server by executing the following command: ```docker run -it --rm -p 8080:8080 jeremymiller/weather```\n2. Call the REST API for the city of your choice to `http://localhost:8080/weather/\u003ccity\u003e`\n\n### Example Call\n```\n$ curl http://localhost:8080/weather/tokyo\n{\"city\":\"tokyo\",\"temp\":304.3,\"took\":\"666.678077ms\"}\n```\n*NOTE: The temperature is returned in Kelvin*\n\n## License\n[MIT](https://github.com/jeremy-miller/weather/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-miller%2Fweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremy-miller%2Fweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-miller%2Fweather/lists"}