Getting Started with Google App Engine
IntelliJ IDEA lets you create Google App Engine projects and upload your applications to Google infrastructure.
- Before you start
- Creating Google App Engine Project
- Checking Project Structure
- Running the Application
- Debugging the Application
- Configuring Google App Account
- Deploying Google App Engine Application
- Using Google App Engine Deployment
Before you start
Before you start creating your Google App Engine project, make sure that the Google App Engine plugin is downloaded and enabled in IntelliJ IDEA.
Creating Google App Engine Project
- If no project is currently open in IntelliJ IDEA, click Create New Project on the Welcome screen. Otherwise, select File | New | Project.
As a result, the New Project wizard opens.
- In the left-hand pane, select Java.
- In the right-hand pane, select your project SDK.
- Under Additional Libraries and Frameworks select Google App Engine. Note that the Web Application option will be selected automatically.
- In the Google App Engine SDK field, select the SDK you want to use. If the list is empty click Download link to download the latest Google App Engine SDK. If the field doesn't contain the SDK that you want, click and select the installation folder of the required Google App Engine SDK in the dialog that opens.
- Click Next.
- On the next page of the wizard, specify the name and location settings.
For more information, see Project Name and Location or Module Name and Location.
IntelliJ IDEA creates an empty Google App Engine project. Depending on the selected persistence type, IntelliJ IDEA generates persistence.xml for JPA or jdoconfig.xml for JDO and takes the required libraries from the App Engine SDK.
Checking Project Structure
- On the main menu, select .
- Check settings for the Google App Engine facet to make sure everything was configured properly.
Running the Application
- Enter your code or (like in our case) you can modify the index.jsp file.
- Press icon to run the application.
- View the result in the default browser.
Debugging the Application
- On the main menu, select or click the toolbar button.
- View the results in the Debugger tool window.
Configuring Google App Account
- If you going to upload your application to the cloud or deploy the artifact on the cloud server, create an application at Google App Engine.
- Add the name of the created application to the appengine-web.xml file.
Deploying Google App Engine Application
- On the main menu, select .
- In the dialog that opens specify the deployment configuration settings and click Run.
- During the deployment IntelliJ IDEA might prompt you for your Google Account credentials.
IntelliJ IDEA displays the progress in the Application Servers tool window.
- View the result in your default browser.
Using Google App Engine Deployment
- Select .
- In the Run/Debug Configurations dialog, select to add a new configuration.
- From the drop-down list select .
- On the right-hand side specify the Google App Engine Deployment settings and click OK.
- The name of the configuration appears on the main tool bar, click to start deploying.
Note that the IntelliJ IDEA might ask for your Google Account password.
- IntelliJ IDEA displays the progress of deployment in the Application Servers tool window.
- Open Google App Engine page.
- On the Application Overview page, click Running next to your application name to see the result of your deployment.