Creating an App for the Standard Environment

This document describes how to create an application for the App Engine standard environment.

Before you begin

  • Follow the Quickstart to install and set up IntelliJ IDEA, Ultimate Edition.

  • To deploy to the App Engine standard environment from IntelliJ Ultimate Edition, you must install the Google Cloud SDK Java Extensions:

    gcloud components install app-engine-java

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:

  1. Choose File > New > Project to display the New Project dialog.

  2. Choose Java in the left panel.

  3. In the Additional Libraries and Frameworks section, check the box for Google App Engine standard.

  4. Enter the path to the Cloud SDK directory.

  5. Select the additional libraries you want to add to the classpath of your application. The Servlet API is selected by default.

  6. Click Next.

  7. Enter a Project name.

  8. Enter a Project location if you do not want to keep the default.

  9. Update the fields in the More Settings section if you do not want to keep the defaults.

  10. Click Finish.

Checking out an existing project

You can check out your existing project in Cloud Source Repositories as follows:

  1. Choose VCS > Checkout from Version Control > Google Cloud.

  2. Screenshot showing the navigation to the
Source Code checkout menu option.
  3. In the Clone from Google Cloud dialog, select the Cloud Project associated with your project.
  4. Screenshot showing the dialog to checkout
source code.
  5. Select your Cloud Repository.
  6. Select the Parent Directory.
  7. Enter the Directory Name.
  8. 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.

  1. Right click the project.

  2. Choose Add Framework Support.

  3. Select the Google App Engine standard checkbox.

    Alternatively, you can add App Engine framework support through the Google Cloud Tools menu:

    1. Select Tools > Google Cloud Tools > Add App Engine support > Google App Engine standard.

    2. Select the module you want to add framework support to.

    3. Click OK.

  4. Verify that the Cloud SDK directory field displays the correct path to where you installed the Cloud SDK.

  5. If the path is incorrect, click the ellipsis (...) to navigate to the correct location.

  6. Select the libraries you want to add to your project.

  7. Click OK.

What's next

Send feedback about...

Cloud Tools for IntelliJ