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

github.com/felipemagrassi/weather-cep-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/felipemagrassi/weather-cep-api

  • v0.0.0-20240216030015-ae8f04b8e748
  • Source
  • Go
  • Socket score

Version published
Created
Source

Weather Cep API

This API is a simple weather API that returns the temperature of a city by receiving a CEP (Brazilian Zip Code) as a parameter.

Usage

  1. Run locally with docker-compose
docker compose up --build
  1. Add the CEP as a parameter in the URL and the API will return the temperature of the city.
curl "http://localhost:8080/?cep=10010-000"

Using in production

Run cp .env.sample .env and fill the environment variables with your own values or create a .env file with an environment variable called WEATHER_API_KEY with your Weather API key (https://www.weatherapi.com/)

  1. To run the docker compose production file:
docker compose -f docker-compose.prod.yml up

Demo in Google Cloud Run

FAQs

Package last updated on 16 Feb 2024

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