I successfully built a small Google Endpoints App with Android Studio and its predefined, gradle-based template for using it with Android.
Now, the requirements are getting more complicated and I also need a "backend instance" for some background tasks.
However, I can't figure out how to change the project structure or add the "backend instance" as another module which integrates into the current Gradle setup.
Right now the structure is like following:
app (Android)
backend (app engine)
src/main/java
src/main/webapp
WEB-INF
appengine-web.xml
web.xml
I am using following app engine gradle plugin: com.google.appengine:gradle-appengine-plugin:1.9.17
Any ideas how to add a "backend instance" to this setup?
Related
I'd like to deploy an app on GAE, but I think I must be missing something.
I've downloaded the google cloud code plugin for IntelliJ.
I've installed the gcloud SDK
I've authenticated with my google account
I've created a new project of type GAE project, which in the project structure window shows the GAE facet, and has an appengine-web.xml file.
Yet when I try and run my new project the log shows an error:
21:51 Error running 'Google App Engine Deployment': Deployment is not selected
I presume it's referring to this window:
As you can see there are no deployments. When I try to edit the Run configuration, there's not much there:
What am I doing wrong?
what happens if you try adding AppEngine support explicitly, i.e. using Tools -> Cloud Code -> App Engine -> Add App Engine Support -> App Engine Standard menu? Will the deployment target appear or anything changes?
Hi stackoverflow community,
I'm on a project that imposes developping a web app with these technologies:
AngularJs app calling the back-end (the back-end API already existing)
this app will be hosted on Tomcat, with maven as a build tool.
Now I installed eclipse, configured maven and tomcat on it, and i want to start with my first html page. The problem is that I can't find how to deploy an html page (as a start) with these technologies without using a servlet.
I want to generate a war file using maven that would be deployed in tomcat server without defining servlets in web.xml.
All i can find on the internet is how to manually deploy angularJs apps on tomcat.
I found this github project that might be very useful, I'll try to follow the same project structure.
Is it possible to deploy a Google App Engine backend module in Android Studio as a Google App Engine project (on Google's servers)? In eclipse this was possible with the plugin, but now I don't see how to do this or found someone else doing this.
If you want to see what's under the hood of gradle:
gradlew tasks
If you want only the .war file
gradlew war
Will do the job:
gradlew appengineUpdate
You can do this from UI itself. Go to
Build -> Deploy Module to App Engine
If you are deploying this for the 1st time then you will have to sign in to your google account by using add account button.
can anyone help me as to how to deploy the mirror-api java quick start project to google app engine? I have imported the project into Eclipse via the maven import and made the war file: mvn war:war
I am able to run it locally without any problems
dont know how to deploy to app engine, I have created an appspot project inside google app engine as well
check it out https://github.com/googleglass/mirror-quickstart-java/tree/app-engine
there's a tag on official repo!
I want to host a Java/AngularJS app on Google App Engine, and leverage the Eclipse plugin. I figure the most straightforward way to do this is:
From within Eclipse, start a new Google Web Project.
Go to project properties and uncheck GWT and DataNucleus.
Delete the generated java classes and GWT related stuff so you have an appengine.web.xml, web.xml, WEB-INF/lib, log4j properties, and a few other files left.
Put index.html under the war folder, sister to favicon.ico.
Change web.xml welcome file to index.html
Deploy and test that index.html is visible.
Deployment via Eclipse works fine, but myapp.appspot.com/ and myapp.appspot.com/index.html both return 404.
Simply put my use case is "how do I deploy an index.html to GAE (using Eclipse plugin) without the 800 pound guerilla that is GWT?"
I was unable to find good documentation on this.
Unchecking 'Use Google Web Toolkit' should be all you need to do to create a basic App Engine application without GWT, however, it will not create a sample index.html file. For that, you need to keep 'Generate project sample code' checked. This will create some extra Java files for you that you'll need to delete, but it's the closest you can get to what you described in your question.