Thursday, July 3, 2014

The Google Mirror API allows you to build web-based services that interact with Google Glass. It provides this functionality over a cloud-based API and does not require running code on Glass( Read More). In this post am going to discuss about how to create a Mirror API hello world app and deploy it to Google AppEngine.

Create Google App Engine Project

Create Google API console project

Install Google App Engine Plugin for Eclipse

Develop Web application with mirror API

Deploy web app to App Engine

1. Create Google App Engine Project

Create a application in https://appengine.google.com, and note down the application identifier we are going to use this identifier in further steps.

2. Create Google API console project

Follow mirror API java quick start guide to create Google APIs console project finally you will get Client id and Client secret note down these two values we are going to use this values in future steps.

Also do necessary changes in AuthUti.java class
g. Copy index.jsp into war directory and delete existing index.html file. Also change import class reference in index.jsp file.
h. Copy static folder and place inside the war.
i. Download common-lang3.jar and add to your build path.
j. Now right click your project -> Run as web application, now your project will be running in localhost you can check it in http://localhost:8080