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

github.com/antoniocarlosmjr/weather-api-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/antoniocarlosmjr/weather-api-go

  • v0.0.0-20240328113544-8776be3261f2
  • Source
  • Go
  • Socket score

Version published
Created
Source

weather-api-go

This API is developed in Golang as a form of assessment for full cycle postgraduate courses.

How to run

  1. Clone the repository
  2. Run the command docker-compose up in the root folder of the project
  3. Access the URL http://localhost:8080/api/v1/weather?cep=cep_number in your browser or Postman, replacing cep_number with the cep of the city you want to know the weather.
  4. The API will return a JSON with the weather information of the city you requested.
  5. To stop the API, run the command docker-compose down in the root folder of the project.

How to run tests

  1. Run the command go test ./... in the root folder of the project
  2. The tests will run and show the results in the terminal

How to run the API remotely

  1. Access url https://weather-api-go-jggvvzwp2q-uc.a.run.app/api/v1/weather?cep={your_cep} for execute the API. This service is will be availble until 24 June 2024.

FAQs

Package last updated on 28 Mar 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