This tutorial describes how to get started with Google App Engine in IntelliJ IDEA 12.


1. Enable Google App Engine Integration

Before you proceed with this tutorial, make sure that Google App Engine Integration plugin is enabled in the

. The quickest way to get there is to press
and start typing

2. Create a new project

Begin with starting the New Project wizard:

{span:class=shortcut}New Project{span}
. To create a Google App Engine project, first select Java Module and click

Now choose

{span:class=shortcut}Google App Engine{span}
facet and specify path to the Google App Engine Java SDK folder.

After you complete the wizard, IntelliJ IDEA will create an empty Google App Engine project.

3. Check the project structure

To make sure that the project is configured properly, go to

{span:class=shortcut}Project Structure{span}
, and check settings of the
{span:class=shortcut}Google App Engine{span}

4. Run the application

Let's modify the

page so that it would display the good old
{span:class=id}"Hello, world\!"{span}

To run our application we can either click

{span:class=id}AppEngine Dev{span}
run configuration icon on toolbar, or use the
{span:class=shortcut}Run 'AppEngine Dev'{span}
menu command.

IntelliJ IDEA starts the application and opens it in the default Web browser.

5. Debug the application

Google App Engine applications can be debugged just in the same way as any Web application: via

{span:class=shortcut}Debug 'AppEngine Dev'{span}
menu command, or by clicking the corresponding toolbar button.

6. Configure an account

If we're going to upload this application to the Cloud, we need to create account at Google App Engine.

When the account has been created, its name should be put on

configuration file.

7. Upload the application

Now the application is ready for Cloud deployment via

{span:class=shortcut}Upload App Engine Application{span}
. During deployment IntelliJ IDEA may prompt you for credentials and will display progress in the
tool window.

After the upload is completed, application is open in default Web browser.