Chrome extension interacting with Google app Engine in Java - google-app-engine

I am trying to create a chrome extension which will interact with some of the google products like calender, maps etc using their respective APIs.
Presently I am trying to create a Java backend which will be run on google app engine.
My chrome extension will send request to java classes in Google app engine and excnage data streams.
Is it a good idea to go ahead with this approach ? or could you please suggest me some other model.
Thanks,
Mayank

Sounds good to me. If those APIs don't provide javascript (or REST) access then there is no other way than to write a proxy in one of the supported languages.

Yes, this is a perfectly reasonable approach. Did you have specific questions about how to accomplish it?

Related

Do I have to use App Engine to write glassware with Mirror API?

I am trying Python quickstart project (https://developers.google.com/glass/develop/mirror/quickstart/python) and it is implemented on GAE, however, looking at the code it does not seem that there is much dependency on App Engine itself (code is kind of complicated and I still do not understand it all though).
Is this required to host Mirror-based glassware on App Engine?
Is this required to host Mirror-based glassware on App Engine?
No, it is not required. What you really need is ability to use Google API's and Mirror API is just one of them.
Java quick start, for example does not run on top of GAE.

Google App Engine CardDav Example

I am developing an application in Java using Google App engine. I have Google Contacts CardDAV API to access contacts.
How would I configure my project to access the contacts information. I googled but there isn't any proper guidance available for the same.
Help with example will be very appreciated.
Thanks in advance.
You could take a look at the CardDAV API specification in this article on Google Developers. You simply need to interact with it like any other RESTful API, issuing commands like GET, POST, DELETE. You can easily issue these requests by using the HttpURLConnection class (documentation here).

Alternative to Google App Engine API?

I'm looking for an alternative of the Google App Engine API. I mean I'm searching an API for coding in JAVA that provides :
Simple DB API, with no conf
Simple User API, with no need to implements the login/register/user management process
Simple Task API, with no need to configure any third lib
Google App Engine is really attractive because it provides all theses functionalities with no effort ... But I need to port my app to my own server... Using appScale is not for me because I don't need something really scalable ... I just want to code the business model, not all things that should already exists.
Hope my question is clear :)
Thanks in advance for help, sincerely,
You can run AppScale on a single node deployment, you'll just lack fault tolerance. I am currently unaware of any other project that runs Java GAE apps.

Reading Google App Engine's datastore to a native app

Does anyone know if it is possible to read from a Datastore on the app engine to a native app?
I am working my way through making a simple notes app that I can store online and use on my phone and tablet. I would prefer the phone interface be more than just a WebView instance or only used from the browser. I would also like a tablet optimized version as well.
I am comfortable programming android, and I am comfortable with web apps as well, so this is the last important piece before I can start putting it all together.
Has anyone done this before? Or, if it isn't possible, can someone send a link so I can further explore and find out what?
Thanks!
You can interface directly with the datastore using remote_api, but this is designed as an administrative interface, and shouldn't be used for access by end-users. The standard approach for what you're doing - on any webapp, regardless of platform - is to define an API that your application exposes for access to the data, and consume that API from your native app. If you're using Python, you may want to check out ProtoRPC (now included in the SDK) as an easy way to define APIs.

Any one tried MongoDB on Google App Engine?

I'm trying to deploy one of my java apps in GAE and I have used MongoDB. Unfortunately GAE doesn't allow me to create databases, however it suggests using Google Datastore. Are there any plugins or add-ons to use MongoDB.
You can't run MongoDB on GAE. You need to use the Google datastore.
Matt is right. If you want to deploy to Google's servers you can't use Mongo. If you are interesting in running your own server(s), check out AppScale.
If you really want to use MongoDB anyway, you'll have to find a third-party host that provides a REST interface through which you can make your transactions. I've personally tried and recommend MongoLab on App Engine. Then, in your code, use an HttpUrlConnection object to send/receive requests if you're doing it with Java.
I think you could deploy your app on app engine and create a separate vm instance in google compute engine that would have mongo installed, then you plug your GAE app on that vm for the db connection. This would allow you to keep all your app in the google cloud. See https://cloud.google.com/solutions/mongodb/ and http://docs.mongodb.org/ecosystem/platforms/google-compute-engine/
A lot of things have changed since this question has been asked, as of June 2021, you can use MongoDB Atlas with Google App Engine Standard running on Java 8 environment. I built my App with the Ktor framework that runs on App Engine and interacts with databases on MongoDB Atlas.
if you're still looking for an answer to this you might want to check this project that did exactly the same but in reverse, it will surely help you out with what you want to do.
http://code.google.com/appengine/articles/django-nonrel.html
you can use mongo, only if have something like on mongolab then use pymongo to connect and most important thing you need to enable socket api from gae dashboard.
it worked for me thanks

Resources