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

github.com/luke-jj/go-weather-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/luke-jj/go-weather-api

  • v0.0.0-20200310194614-9be00448d5d6
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go Weather Service REST API

Installation

  • Manual installation requires Go v1.3 or newer.
  • Run dep ensure to fetch the dependencies.

Environment Variables

The following environment variables are required to be set (example values):

ENVIRONMENT_MODE=production
PORT=8080
API_WEATHER_KEY=89340ry28rrd23jdbvdj39828d
API_WEATHER_URI=api.openweathermap.org
API_TIME_URI=worldclockapi.com
API_JWTPRIVATEKEY=akdflsdfsdf
API_MONGO_URI='mongodb+srv://weatheruser:skadjfi2fjskdf@example.net'
API_MONGO_DBNAME=weather

These two variables are optional

API_CONFIG_NAME=production-config
API_LOG_ENABLED=true

Dev Notes

Using Reflex for hot reloading

 reflex -r '\.go$' -s -- sh -c "go run cmd/weather-server/*.go"

FAQs

Package last updated on 10 Mar 2020

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