To deploy your app on App Engine, you must create a Google Cloud project, which is a top level container that holds your App Engine application resources as well as other Google Cloud resources.
In this task, you create a Google Cloud project and an App Engine application to store settings, computing resources, credentials, and metadata for your app.
If you already have a Google Cloud project with App Engine and the Cloud Build API enabled, continue to Writing Your Web Service.
Create a Google Cloud project
- 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.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Cloud Build API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Cloud Build API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
Create an App Engine application for your Google Cloud project in the Google Cloud console.
Select a region where you want your app's computing resources located.
Next steps
Now that your Google Cloud project is set up, you're ready to write a basic web service with Java.