简体   繁体   English

Google Glass不在App Engine上

[英]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? 有没有人试图在App Engine之外的服务器上运行玻璃器皿,比如Tomcat?

I am trying to get a glassware app going and I would rather avoid using the Google App Engine itself. 我正在尝试使用玻璃器皿应用程序,我宁愿避免使用Google App Engine本身。 I'm having difficulties approaching this and I will be using Tomcat as my server. 我很难接近这个,我将使用Tomcat作为我的服务器。

Any help is appreciated. 任何帮助表示赞赏。 Thanks. 谢谢。

No problems so far running outside of App Engine for me. 到目前为止,没有任何问题在App Engine之外运行。 I stood up the example in App Engine just to get my bearings. 我站在App Engine中的例子只是为了得到我的支持。 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. 一旦我看到它的表现如何,我就有足够的信息将其提炼到我需要在App Engine之外运行它。

Here's your checklist: 这是你的清单:

  1. You need to create a project in https://code.google.com/apis/console 您需要在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) 您需要将Mirror API添加到服务中(此时,只有Glass Explorers可用 - 如果我没有记错的话)
  3. Under API Access you need to create a Client ID for Web Applications; 在API Access下,您需要为Web应用程序创建客户端ID; set up your redirect URL to point to the enrollment servlet you're going to create. 设置重定向URL以指向您要创建的注册servlet。
  4. Create your enrollment service that handles the oAuth 2.0 dance and stores tokens. 创建处理oAuth 2.0舞蹈和存储令牌的注册服务。 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... 您可以从示例应用程序中获取大部分代码,并实现自己的凭据存储或使用Google内存中的代码...
  5. Enroll yourself in your own app and use your credentials to develop your Mirror API app. 注册您自己的应用程序并使用您的凭据开发Mirror API应用程序。

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. 我能够从我的pom文件中消除App Engine依赖项,但我仍然需要保留google-http-client-jackson,google-oauth-client,guava,当然还有google-api-services-mirror。

HTH! HTH!

I have a Python/Django version which I deploy to Heroku. 我有一个Python / Django版本,我部署到Heroku。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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