App Engine スタンダード環境のアプリケーションの作成

Cloud Tools for Eclipse には、App Engine スタンダード環境の新しい Java アプリケーションを作成するためのウィザードが Eclipse 内に用意されています。

始める前に

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  3. Google Cloud プロジェクトで課金が有効になっていることを確認します

  4. Cloud Build API を有効にします。

    API を有効にする

  5. Google Cloud CLI をインストールします。
  6. gcloud CLI を初期化するには:

    gcloud init
  7. Google Cloud Console の [プロジェクト セレクタ] ページで、Google Cloud プロジェクトを選択または作成します。

    プロジェクト セレクタに移動

  8. Google Cloud プロジェクトで課金が有効になっていることを確認します

  9. Cloud Build API を有効にします。

    API を有効にする

  10. Google Cloud CLI をインストールします。
  11. gcloud CLI を初期化するには:

    gcloud init
  12. Google Cloud コンソールで、Google Cloud プロジェクトの App Engine アプリケーションを作成します。

    アプリ作成画面を開く

  13. アプリのコンピューティングリソースを配置するリージョンを選択します。

  14. 最新バージョンの Cloud Tools for Eclipse があることを確認します。

App Engine スタンダード環境の新しい Java プロジェクトの作成

Eclipse で App Engine スタンダード環境の新しいプロジェクトを作成するには:

  1. Click the Google Cloud Platform toolbar button .

  2. Select Create New Project > Google App Engine Standard Java Project.

  3. Enter a Project name and (optionally) a Java package.

  4. To create a Maven-based App Engine project, select Create as Maven Project and enter a Maven Group ID and Artifact ID of your choosing to set the coordinates for this project. The Group ID is often the same as the package name, but does not have to be. The Artifact ID is often the same as or similar to the project name, but does not have to be.

  5. Click Next.

  6. Select any libraries you need in the project.

  7. Click Finish.

The wizard generates a native Eclipse project, with a simple servlet, that you can run and deploy from the IDE.

次のステップ