Running Go App Engine apps locally. - google-app-engine

I'm trying to run an App Engine app locally using the development server, as specified in Google's docs. I'm running into a ton of compilation errors due to the go library packaged in the SDK missing system libraries.
Looking at the SDK download page, it says:
Note: The Google App Engine Launcher does not work with Go apps.
So is there no way to launch Go apps running on App Engine locally?

The GAE Go SDK contains and uses a modified version of Go 1.6.2., and the context package was added to the standard lib in Go 1.7. The old API that comes bundled in the SDK uses the appengine.Context context.
See related question: AppEngine/Go: Using a new version of Go with the SDK

Related

Download sources of existing AppEngine based site using Google Cloud

I have a site hosted in Google AppEngine. For years I was able to download/upload its sources using appcfg.py. However today Google went to Google Cloud, all appcfg related documents are marked as deprecated. I've installed the GCloud environment but cannot find a way how to download my project from google, all I can see is to create a new app and deploy an app but no download possibility.
What is a correct command(s) to download AppEngine app to local computer and then, after changes, upload it back to AppEngine?
There’s currently no way to download the source code using Cloud SDK. You can create a feature request on the issue tracker website.
The appcfg tool is now deprecated, it is recommended to use the Cloud SDK tooling such as gcloud command tool

How can I change Google App Engine Deployment from Standard to Flex in IntelliJ

I installed the Cloud Code Plugin for IntelliJ to deploy a Java 8 project to App Engine (Standard)
I added the Framework Support by running:
Tools > Cloud Code > App Engine > Add App Engine Support > Google App Engine Standard
Now I have to change this to App Engine Flexible but when I try to do this the same way as for App Engine Standard I get the following error:
All modules already have App Engine support, or no modules were found.
What files do I have to modify or how can I remove App Engine support and start over?
I already tried right-clicking the project and selecting Add Framework support...but the Google App Engine option isn't checked and when I select it doesn't give me any options
From my understanding of this issue is that in IntelliJ you cannot add child framework support when parent is already added. What this means is that since you have your application running under the standard environment you are unable to add in an additional environment (in this case, the app engine flexible).
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000073610-Cannot-add-child-framework-support-when-parent-is-already-added
I ran into the same error as the one stated in your situation. You can simply import the project again from your project directory and select the framework (App Engine Flexible) instead of the standard environment.

Implementing App Engine microservices with Android Studio

I want to create multiple services for the backend of my Android App, because some modules will be called by the users, but others have to start automatically each X hours with a cron.xml setting of Google App Engine.
However when I deploy each module from Android Studio to my Google Cloud Platform Project, only the last deployed is online. I know that I can use versions to make a differentiation between modules, but this is more like a hacky solution no?
I want to know if there is way to create a App Engine microservice architecture with Android Studio? Or the only solution is to deploy as different version?
Thanks for your help.
The answers is finally very easy. In the appengine-web.xml, a module name shall be added using:
<module>yourmodulename</module>
Then when deploying you will have a new service automatically. Your first android studio backend module shall be the default, the others you have to give then a name.

Uploading mirror Java Quickstart to App Engine

Question about getting the Java starter project booted up on Google App Engine
https://developers.google.com/glass/quickstart/java
In that quickstart when configuring Eclipse it says
Uncheck the Use Google App Engine checkbox and save.
However if I follow the instructions on the above page - including Eclipse with the Google plugin - I get a project which can be run on localhost. If I try to upload the App Engine it says this is not a App Engine project and won't upload.
So then if I make it one (go under the Google->App Engine settings) the Eclipse project complains about the jars under
web/WEB-INF/lib
and still won't upload. If I delete them then I get a project that doesn't compile either. So what do I need to do specifically to get this to load to the cloud?
Related to this is that I'm confused about the relationship between Maven and Eclipse - the two seem to be a cross purposes as Maven populates the lib directory but I keep wrangling with Eclipse over it too. The App Engine plugin seems to want to use it's jars, while the app-engine code I downloaded per the instructions (to get the bin utils app-cfg) want to be used too by Maven AFAIK.
Deploy to App Engine from the command line using appcfg.sh.
Getting many IDEs and App Engine to all work in the same project has led to some compromises due to differing assumptions made by each of the tools involved. For example, the Eclipse App Engine plugin makes different assumptions about the structure of projects than other IDEs. The compromise was to fall back to the official command line tools since they seem the most tolerant of variation and are always available.
Maven is part of the project to handle dependency management.
If you'd like to use Eclipse for your deployment too, you'll probably want to create a new Eclipse App Engine project and copy the libraries and code into that project.

Executable from Google App Engine project

Is it possible to create an executable file from a Google App engine project in Python?
Well... no. But there are open-source projects available that allow you to run your App Engine application locally, and that attempt to be compatible with Google's App Engine API.
For example, check out typhoonae:
http://code.google.com/p/typhoonae/
You could develop your application using the Google SDK, and then deploy it on a local machine using the TyphoonAE app server.

Resources