Note |
---|
|
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
Wiki Markup |
---|
{span:class=shortcut}Settings{span} |
→ Wiki Markup |
---|
{span:class=shortcut}Plugins{span} |
. The quickest way to get there is to press Wiki Markup |
---|
{span:class=shortcut}Ctrl+Alt+S{span} |
and start typing Wiki Markup |
---|
{span:class=shortcut}Plugins{span} |
.
Image Added
2. Create a new project
Begin with starting the New Project wizard:
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 click Wiki Markup |
---|
{span:class=shortcut}Next{span} |
.
Image Added
Now choose
Wiki Markup |
---|
{span:class=shortcut}Google App Engine{span} |
facet and specify path to the Google App Engine Java SDK folder.
Image Added
After you complete the wizard, IntelliJ IDEA will create an empty Google App Engine project.
Image Added
3. Check the project structure
To make sure that the project is configured properly, go to
Wiki Markup |
---|
{span:class=shortcut}Project Structure{span} |
→ Wiki Markup |
---|
{span:class=shortcut}Modules{span} |
, and check settings of the Wiki Markup |
---|
{span:class=shortcut}Google App Engine{span} |
facet.
Image Added
4. Run the application
Let's modify the
Wiki Markup |
---|
{span:class=id}index.jsp{span} |
page so that it would display the good old Wiki Markup |
---|
{span:class=id}"Hello, world\!"{span} |
message.
Image Added
To run our application we can either click
Wiki Markup |
---|
{span:class=id}AppEngine Dev{span} |
run configuration icon on toolbar, or use the Wiki Markup |
---|
{span:class=shortcut}Run{span} |
→ Wiki Markup |
---|
{span:class=shortcut}Run 'AppEngine Dev'{span} |
menu command.
Image Added
IntelliJ IDEA starts the application and opens it in the default Web browser.
Image Added
5. Debug the application
Google App Engine applications can be debugged just in the same way as any Web application: via
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.
Image Added
6. Configure an account
If we're going to upload this application to the Cloud, we need to create account at Google App Engine.
Image Added
When the account has been created, its name should be put on
Wiki Markup |
---|
{span:class=id}appengine-web.xml{span} |
configuration file.
Image Added
7. Upload the application
Now the application is ready for Cloud deployment via
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 Wiki Markup |
---|
{span:class=shortcut}Run{span} |
tool window.
Image Added
After the upload is completed, application is open in default Web browser.
Image Added