Deploying a polymer project to app engine/java standard of flex environments - google-app-engine

I'm looking for instructions similar to these (python) on how to deploy a polymer project to app engine that uses java standard or, preferably, flexible environment. I don't fully understand how a polymer project can be integrated with Jetty. Any help would be greatly appreciated.

It seems that the key here is to integrate static content into my application. There is even no need to add web.xml:
If you do not specify a web.xml, a default is used that maps
everything to the default servlet.
The article even talks about alternatives to serving directly from the application to reduce the costs.

Related

Deploy non-web Java application

I have a relatively small Java app, which I'd like to move over to the Google App Engine. It runs in the console, with no user input needed after the initial startup. I researched a bit on how to deploy it, but all tutorials seem to focus on Java web apps, when I don't really need that. Is it possible to deploy my app if it's not a web app?
App Engine is probably the wrong GCP platform for you - you'd probably be better served just deploying your jar directly onto a Google Compute Engine node. GAE is pretty explicitly oriented around web applications and you'd need to do a bunch of configuration in order to have it work for your use case.
Does your non-web Java app handle web requests? If not, it seems difficult to imagine that you would be able to reach your deployed app and use it for any purpose, once deployed. Your Java app should be able to handle requests, to make deployment worthwhile, and the deployed app useful.
You may find out about how your app should handle requests by reading the How Requests are Handled documentation page.

Developing a web client without servlet

I m new to appengine development.I have a few basic question about web client for appengine.When we make a google cloud module in Android Studio, an android client, a back end and a WEB CLIENT is auto-generated.A few files are auto-generated for web interface. My questions are:
why do I need WEB-INF/web.xml for web client? I also found there's a servlet api dependency added in gradle, though I didnt find and servlet file, what is it used for ?
I want to make a web interface/client for my andorid app, but I dont
know servlet,jsp, can I make it with pure javascript or js lib?
Will the default template for web client work from any other web-hosting
than appengine?
How can I make a web client with pure javascript,css,html, will the
google cloud doc for javascript suffice for this purpose?
why do I need WEB-INF/web.xml for web client? I also found there's a
servlet api dependency added in gradle, though I didnt find and
servlet file, what is it used for ?
Both are base elements for Java web applications even though you are not using servlets most modern web frameworks are built on top of them.
I want to make a web interface/client for my andorid app, but I dont
know servlet,jsp, can I make it with pure javascript or js lib?
Yes, GAE are standard web applications so you can build and app using pure HTML + js.
Will the default template for web client work from any other
web-hosting than appengine?
short answer, no. The App engine SDK depends on several APIs available strictly on the GAE environment. Shouldn't be hard to get an empty webapp template working on a tomcat thought.
How can I make a web client with pure javascript,css,html, will the
google cloud doc for javascript suffice for this purpose?
I dont know exactly what you mean by "the Google cloud Doc" but mostly the answer is yes, all App Engine, Cloud Compute and Google Drive are capable of hosting HTML+JS.

Mixing existing website with Google App Engine

If I want to use Jinja templating with GAE, is there a way to do that from my hosted website? I don't want to run the entire website on appspot.com.
If my host has python installed, I should be able to install Jinja there as well? In that case, I'm guessing my templating code will still work but anything in the app.yaml and main.py will not since I'll basically not be using GAE.
You can definitely use Jinja on any python web framework -- here's just one example I found of a tutorial using Jinja without app engine. Jinja is just an HTML templating library that's host/web platform independent.

GAS UI Builder for GAE

to all
as we all know, Appscript tipicaly for Google Spreadsheet now have a UI builder, though you can compose UI with the script itself the builder is a big factor. now
GAS application is hosted in google drive and can be either share or publish as Webapp. which is great but this type of app is very limited to storing your data in a spreadsheet well, designing a good DB spreadsheet would be enough for small application but is NOT scalable for SME to Enterprise apps.
now having google app engine which have a very good and scalable platform for a webapp.
is there anyway to port the UI library capability and use it for app engine application. having GAS UI as a javascript base (client side) it could be integrated with any serverside language in GAE.
do any one have any example on this or is it now posible?
the way I see it this might be the future for GAE having a GAS as a client side library would be great?
Well, I think you should be looking the other way round. All of Apps Script's UI widgets are borrowed from GWT in GAE. In fact, the Apps Script documentation, at places suggests that we should lookup GWT documentation when this is found inadequate.
Coming to the point of the UI bilder, I'm no GAE expert, but since you get a GWT toolkit for Eclipse, you should be able to use any of Eclipse's UI creating tools ( I may be wrong here).
GWT is compiled to javascript. It doesn't care what the backend is. You can use json to communicate to your python AE instance just fine I would think. I do GWT on java AE so don't have an example of my own but here is an example of using python on AE to use App Scripts https://developers.google.com/apps-script/articles/appengine

migrating from google app engine with Groovy, Java and Gaelyk to another host

I currently have an application that is built on gaelyk, groovy and GAE.
I would like to move this application as is to another host like Amazon EC2 and run it against MYSQL. Is this possible?
I dont need the google USER services.
Take a look at AppScale.
It highly depends on how you use App Engine currently with Gaelyk.
Gaelyk is syntax sugar on top of the GAE SDK, and builds upon of the shoulders of the Groovy giant: the Groovlet servlet and Template servlet are part of Groovy itself, not of Gaelyk.
So if you don't rely on the various GAE services, you can run your app on any Java container, wherever hosted it may be.

Resources