Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Note
iconfalse

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

...

Wiki Markup
{redirect:https://www.jetbrains.com/idea/help/creating-google-app-engine-project.html

...

|delay

...

=0}

1. Enable Google App Engine Integration

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

span
classshortcut
Settings
Plugins
span
classshortcut
Wiki Markup
{span:class=shortcut}Settings{span}
Wiki Markup
{span:class=shortcut}Plugins{span}
. The quickest way to get there is to press
span
classshortcut
Wiki Markup
{span:class=shortcut}Ctrl+Alt+S{span}
and start typing Plugins
span
classshortcut
Wiki Markup
{span:class=shortcut}Plugins{span}
.

2. Create a new project

Begin with starting the New Project wizard:

span
classshortcut
File
New Project
span
classshortcut
Wiki Markup
{span:class=shortcut}File{span}
Wiki Markup
{span:class=shortcut}New Project{span}
. To create a Google App Engine project, first select Java Module and clickNext
span
classshortcut
Wiki Markup
{span:class=shortcut}Next{span}
.

Now choose

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

...

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

span
classshortcut
Project Structure
Modules
span
classshortcut
Wiki Markup
{span:class=shortcut}Project Structure{span}
Wiki Markup
{span:class=shortcut}Modules{span}
, and check settings of the Google App Engine
span
classshortcut
Wiki Markup
{span:class=shortcut}Google App Engine{span}
facet.

4. Run the application

Let's modify the

span
classid
Wiki Markup
{span:class=id}index.jsp{span}
page so that it would display the good old
span
classid
Wiki Markup
{span:class=id}"Hello, world\!"{span}
message.

To run our application we can either click

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

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

...

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

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

...

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

span
classid
Wiki Markup
{span:class=id}appengine-web.xml{span}
configuration file.

7. Upload the application

Now the application is ready for Cloud deployment via

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

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

...