简体   繁体   中英

Google Glass Not on App Engine

Has anyone tried to get a glassware running on a server besides the App Engine, like Tomcat for example?

I am trying to get a glassware app going and I would rather avoid using the Google App Engine itself. I'm having difficulties approaching this and I will be using Tomcat as my server.

Any help is appreciated. Thanks.

No problems so far running outside of App Engine for me. I stood up the example in App Engine just to get my bearings. Once I saw how it behaved I had enough information to distill it down to what I would need to run it outside of App Engine.

Here's your checklist:

  1. You need to create a project in https://code.google.com/apis/console
  2. You need to add Mirror API to the services (at this moment, only available to Glass Explorers-- if I'm not mistaken)
  3. Under API Access you need to create a Client ID for Web Applications; set up your redirect URL to point to the enrollment servlet you're going to create.
  4. Create your enrollment service that handles the oAuth 2.0 dance and stores tokens. You can probably appropriate most of the code from the example app and implement your own credential store or use the in-memory one from Google...
  5. Enroll yourself in your own app and use your credentials to develop your Mirror API app.

I was able to eliminate the App Engine dependencies from my pom file, but I still needed to keep google-http-client-jackson, google-oauth-client, guava, and of course google-api-services-mirror.

HTH!

I have a Python/Django version which I deploy to Heroku.

https://github.com/dannyroa/glasstophone-django/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM