Giter Club home page Giter Club logo

forecast's Introduction

Forecast

A weather forecast written in Go ready to deploy on google cloud functions.

Wearher Forecast

Resources

  • Openweather, Simple and fast APIs. Access to current weather, forecasts, maps and historical data in JSON, XML, and HTML formats. A variety of map layers are available including precipitation, clouds, pressure, temperature, wind, and many more.
  • Mapquest, Build great location-based experiences and delight your customers with MapQuest for Business' geospatial solutions: mapping, geocoding, directions & search.
  • weather-icons, Weather Icons is the only icon font and CSS with 222 weather themed icons, ready to be dropped right into Bootstrap, or any project that needs high quality weather, maritime, and meteorological based icons!
  • Google Cloud Functions, Serverless application backends. Trigger your code from GCP services or call it directly from any web, mobile, or backend application.

Cloud Functions

  • Create a Openweather account, free plan offers 1,000 calls per day. Get the API Key
  • Create a Mapquest account, free plan offers FREE 15,000 transactions per month. Get the API Key
  • Log on Google cloud functions console,then create a project and 2 cloud functions.
Name Runtime Memory allocated Executed function Environment variables
index Go 1.11 128 MB ForecastAPIV1
forecast Go 1.11 128 MB GetIndex mapquest_key = YOUR KEY openweather_key = YOUR KEY

You can upload the go code to each cloud function or you can attach to a Google source cloud repository.

Also you can create cloud functions using gcloud sdk command line.

gcloud functions deploy index --entry-point "GetIndex" --runtime go111 --trigger-http --memory 128
gcloud functions deploy forecast --entry-point "ForecastAPIV1" --runtime go111 --trigger-http --memory 128 --set-env-vars "mapquest_key=**YOUR KEY**,openweather_key=**YOUR KEY**"

Now you project is ready on https://us-central1-PROJECT.cloudfunctions.net/index

forecast's People

Contributors

rfiestas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

constantintonu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.