PhoneGap Backend Database - Google App Engine DataStore - google-app-engine

I have developed a PhoneGap application (HTML5,CSS,JS). The app needs to create product items using a form and then store that information in the gae DataStore. The app also needs to display all the products stored in DataStore.
I am new to both Web Development & Google App Engine. Can you please point me to an example (sample) code that uses PhoneGap & Google App Engine DataStore.

If using java, you can implement your backend using a REST framework like Restlet, Jersey or Cloud Endpoint
If using python, you can implement you backend using a REST framework like Flask-Restful or Cloud Endpoint.
Alternatively you can consider using something like gwt-phonegap that provide direct integration of phonegap with GWT.
You can call it from Phonegap using your preferred javascript library or XMLHttpRequest.

Related

Is it possible to implement create a web project in Spring Boot + Datastore?

I'm currently new to web developing and right now I started with a Spring Boot application which I converted to standard App Engine project. I'm wondering if it is possible to not convert my Spring Boot application to my App Engine project and still use Datastore as database?
Yes, it's possible to use the Cloud Datastore from an app in the GAE flexible environment, from outside GAE or even from outside the Google Cloud. From Cloud Datastore (emphasis mine):
You can access Cloud Datastore from anywhere using the Cloud
Datastore API. Use the Google Cloud client libraries to store and
retrieve data from Cloud Datastore.
The same Cloud Datastore data is available regardless of if you use
the App Engine libraries, the Google Cloud client libraries, or call
the API directly.
But you can't use the GAE Standard Environment Client Libraries, you have to use either the Cloud Datastore Client Libraries or the Cloud Datastore API v1.
Potentially of interest: the Deploying to the App Engine Flexible Environment guide happens to use a spring boot app as example.

how can I use google app engine with an application in phonegap

I have been developing a Phonegap client application, I need to create a web service that storage all the data that i will be sending through the app.
I want to use google app engine to create the database and the web service.
I have read a lot, but i don't find a concrete example of how to do it and how to call the web service then from the application with phonegap.
Anyone have an example of how to do this?
You can use Cloud Endpoints with your app:
Google Cloud Endpoints consists of tools, libraries and capabilities
that allow you to generate APIs and client libraries from an App
Engine application, referred to as an API backend, to simplify client
access to data from other applications. Endpoints makes it easier to
create a web backend for web clients and mobile clients such as
Android or Apple's iOS.
For mobile developers, Endpoints provides a simple way to develop a
shared web backend and also provides critical infrastructures, such as
OAuth 2.0 authentication, eliminating a great deal of work that would
otherwise be needed. Furthermore, because the API backend is an App
Engine app, the mobile developer can use all of the services and
features available in App Engine, such as Datastore, Google Cloud
Storage, Mail, Url Fetch, Task Queues, and so forth. And finally, by
using App Engine for the backend, developers are freed from system
admin work, load balancing, scaling, and server maintenance.
It is possible to create mobile clients for App Engine backends
without Endpoints. However, using Endpoints makes this process easier
because it frees you from having to write wrappers to handle
communication with App Engine. The client libraries generated by
Endpoints allow you to simply make direct API calls.
Available in Python | Java
we have done similar thing for our Cordova/ionic based application. Its very simple and straight forward using javascript client of google cloud endpoint.

Google Cloud SQL Backend

I've started developing for GAE (Google App Engine) and I want to build a REST API using Google Cloud SQL. I currently have a web app in App Engine that works well with Google Cloud SQL but I need to build an API to provide REST services for Android and iOS or any other technology capable of consume web-services.
I've read many docs in Google about Mobile Backend Starter, Endpoints, etc. I'm not pretty sure how to integrate with my existing Cloud SQL Database. I think I'm almost near to get what I need.
If someone knows a tutorial or documentation to achieve what I need, please share it in here.
Thanks!
I've found what I needed!
If anyone tries to implement Google Cloud Endpoints using Google Cloud SQL, Python with Django, please follow this tutorial You will be able to build a RESTful API with your existing Django Models.
Also, here's a Youtube Video from GDL which explains very well how to use ProtoRPC for Python and build your Google Cloud Enpoints APIs. ProtoRPC is a framework for implementing HTTP-based remote procedure call (RPC) service.

How to integrate Google App Engine to an existing web application?

I am new to Google App Engine, I have an existing web application and now I need to integrate that with Google App Engine for https://developers.google.com/appengine/docs/java/mail/receiving purpose, how to do that?
One way would be to write your appengine application with a RPC service
http://googleappengine.blogspot.com/2011/04/introducing-protorpc-for-writing-app.html

Amazon Product Advertising API on Google App Engine

What is the easiest way to use the Amazon Product API on the Google App Engine? How do you work around the socket limitations of Google App Engine?
Are you using the REST API ? If it's purely a REST API, you should be able to make calls using the urlfetch service.
What have you tried so far, and what errors has it given you?
Also, are you using the Java or Python version of App Engine?
I'm using this library together with Beautiful Soup on App Engine. Had no problems so far.
This basic Amazon Product API module is compatible with Google App Engine.

Resources