Skip to content

A weather service api for various frontends supplying time and weather data, forecasts, articles and a user management and profile system.

License

Notifications You must be signed in to change notification settings

luke-jj/go-weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

A weather service api for various frontends supplying time and weather data, forecasts, articles and a user management and profile system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published