Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

github.imxd.top/robertoduessmann/weather-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.imxd.top/robertoduessmann/weather-api


Version published
Created
Source

weather-api

License Build Status Go Report Card GoDoc

A REST API to check the current weather.

https://goweather.herokuapp.com/weather/Curitiba
https://goweather.herokuapp.com/weather/{city}

Build locally (Mac users)

brew install dep
dep ensure
go build

Run

./weather-api

Usage

curl http://localhost:3000/weather/{city}

Example

Request
curl http://localhost:3000/weather/Curitiba
Response
{  
   "temperature":"29 °C",
   "wind":"20 km/h",
   "description":"Partly cloudy",
   "forecast":[  
      {  
         "day":1,
         "temperature":"27 °C",
         "wind":"12 km/h"
      },
      {  
         "day":2,
         "temperature":"22 °C",
         "wind":"8 km/h"
      }
   ]
}

Web version

A web client of the API is also available: https://reacttempo.netlify.app/
The project can be found in https://github.com/GabrielCampos99/appTempo.

License

The MIT License (MIT)

FAQs

Package last updated on 25 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc