App Engine is a fully managed, serverless platform for developing and hosting web applications at scale.
This document describes how to create an application (or import an existing project) for the App Engine standard environment with Cloud Code.
Before you begin
- Install and set up IntelliJ Ultimate with JetBrains IDE version 2019.3+
PATHof your machine.
Install the Cloud Code plugin:
- Open IntelliJ IDEA (or any supported JetBrains IDE).
- From your plugins marketplace (File > Settings > Plugins or for Mac OS X, IntelliJ IDEA > Preferences > Plugins), search for the 'Cloud Code' plugin and install it.
You may be prompted to restart your IDE to activate the plugin.
Creating a new application
You can create a new application by using the new project wizard or by importing an existing project in Cloud Source Repositories.
Using the new project wizard
To create a new project, you can use the IntelliJ New Project wizard to generate a template application as the start for your own application.
Create a new project as follows:
Choose File > New > Project to display the New Project dialog.
Choose Java in the left panel.
In the Additional Libraries and Frameworks section, check the Google App Engine box for your environment.
Select the additional libraries you want to add to the classpath of your application. The Servlet API is selected by default.
Enter a Project name.
Enter a Project location if you do not want to keep the default.
Update the fields in the More Settings section if you do not want to keep the defaults.
Checking out an existing project
You can check out your existing project in Cloud Source Repositories:
Choose VCS > Get from Version Control....
- Select Google Cloud from the Version Control dropdown and click Clone.
- In the Clone from Google Cloud dialog, select the Cloud Project associated with your project.
- Select your Cloud Repository.
- Select the Parent Directory.
- Enter the Directory Name.
- Click Clone.
Adding framework support
If you never added framework support to your application, IntelliJ IDEA prompts you to configure the framework after detecting that you opened an App Engine application.
Right click the project.
Choose Add Framework Support.
Select the App Engine standard checkbox.
Alternatively, you can add App Engine framework support through the Cloud Code menu:
Select Tools > Cloud Code > Add App Engine support > Google App Engine standard.
Select the module you want to add framework support to.
Select the libraries you want to add to your project.
Now that you've created an application, you can run and debug it on your workstation.
Additionally, you can also deploy it to the App Engine standard environment.
Getting supportTo send feedback, report an issue on GitHub or ask a question on Stack Overflow.