Como criar um aplicativo no ambiente padrão do App Engine

O Cloud Tools for Eclipse oferece um assistente dentro do Eclipse para criar novos aplicativos Java para o ambiente padrão do App Engine.

Antes de começar

  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. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Verifique se a cobrança está ativada para o seu projeto do Google Cloud.

  4. Enable the Cloud Build API.

    Enable the API

  5. Install the Google Cloud CLI.
  6. To initialize the gcloud CLI, run the following command:

    gcloud init
  7. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  8. Verifique se a cobrança está ativada para o seu projeto do Google Cloud.

  9. Enable the Cloud Build API.

    Enable the API

  10. Install the Google Cloud CLI.
  11. To initialize the gcloud CLI, run the following command:

    gcloud init
  12. Crie um aplicativo do App Engine para seu projeto do Google Cloud no Console do Google Cloud.

    Abrir a criação de apps

  13. Selecione a região em que você quer que os recursos de computação do aplicativo estejam localizados.

  14. Confirme se você tem a versão mais recente do plug-in do Cloud Tools for Eclipse.

Como criar um novo projeto Java no ambiente padrão do App Engine

Para criar um novo projeto para o ambiente padrão do App Engine no Eclipse:

  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.

A seguir