Giter Club home page Giter Club logo

spring-deploy-weather's Introduction

weather

This project is used in the Treehouse workshop on Deploying a Spring Application. The application is a Spring web app that uses two Google APIs and the forecast.io API.

Getting Your API Keys

In order to use this application, you'll need to get a couple API keys. Here's how.

Forecast.io

Go to https://developer.forecast.io/register and register with your email address. After registering, you'll see a page with an example URL that you can use to GET JSON data at an arbitrary latitude and longitude. Clicking that link will show you what the data looks like that our application will receive.

At the bottom of the page, you'll see your unique API key displayed. Copy and paste this into api.properties as the value for the property named weather.api.key.

Google

While logged in to a Google account, navigate to https://console.developers.google.com. From the menu, choose Credentials, click Create credentials, and select API key. When asked, choose Server key. At this point you'll see your key, which you should copy. Paste this key into api.properties as the values for the geocode.api.key and places.api.key properties.

At this point you need to enable the Geocoding and Places API, so that your API key grants you access to those APIs. Under the menu item Overview, you should see a categorized list of Google APIs. Under the Google Maps category, enable the following APIs:

  • Google Maps Geocoding API, and
  • Google Places API Web Service

spring-deploy-weather's People

Contributors

christherama avatar

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.