1. Enable Google App Engine Integration
Before you proceed with this tutorial, make sure that Google App Engine Integration plugin is enabled in theSettings → Plugins. The quickest way to get there is to press Ctrl+Alt+S and start typing Plugins.
2. Create a new project
Begin with starting the New Project wizard: File→New Project. To create a Google App Engine project, first select Java Module and clickNext.
Now choose Google App Engine 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 Project Structure→Modules, and check settings of the Google App Engine facet.
4. Run the application
Let's modify the index.jsp page so that it would display the good old "Hello, world!" message.
To run our application we can either click AppEngine Dev run configuration icon on toolbar, or use the Run→Run 'AppEngine Dev' 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 Run→Debug 'AppEngine Dev' 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 appengine-web.xml configuration file.
7. Upload the applciation
Now the application is ready for Cloud deployment via Tools→Upload App Engine Application. During deployment IntelliJ IDEA may prompt you for credentials and will display progress in the Run tool window.
After the upload is completed, application is open in default Web browser.