Creare un'app per l'ambiente flessibile di App Engine in Cloud Code for IntelliJ
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
App Engine è una piattaforma serverless completamente gestita per lo sviluppo e l'hosting di applicazioni web su larga scala.
Questo documento descrive come creare un'applicazione (o importare
un progetto esistente) per l'ambiente flessibile App Engine con Cloud Code.
Prima di iniziare
Installa e configura JetBrains IDE versione 2022.3+
(IntelliJ Ultimate o Community) su PATH della tua macchina.
Installa il plug-in Cloud Code:
Apri IntelliJ IDEA (o qualsiasi IDE JetBrains supportato).
Nel marketplace dei plug-in (File > Impostazioni > Plug-in o
per Mac OS X, IntelliJ IDEA > Preferenze > Plug-in), cerca
il plug-in "Cloud Code" e installalo.
Per attivare il plug-in, potrebbe esserti chiesto di riavviare l'IDE.
Crea una nuova applicazione
Puoi creare una nuova applicazione utilizzando la procedura guidata per i nuovi progetti o importando
un progetto esistente in Cloud Source Repositories.
Utilizzare la nuova procedura guidata per i progetti
Per creare un nuovo progetto, puoi utilizzare la procedura guidata Nuovo progetto di IntelliJ per generare
un'applicazione modello come punto di partenza per la tua applicazione.
Crea un nuovo progetto nel seguente modo:
Vai a File > Nuovo > Progetto per visualizzare la finestra di dialogo Nuovo progetto.
Se utilizzi IntelliJ Ultimate 2022.3, scegli
Jakarta EE nel riquadro a sinistra.
Per maggiori dettagli sulla creazione di una nuova
applicazione Java Enterprise, consulta il tutorial di JetBrains
Your first Java EE application.
Se utilizzi una versione precedente di IntelliJ Ultimate, fai clic sul menu a discesa
della versione in alto a sinistra dello schermo (accanto al logo di IntelliJ
IDEA) e seleziona la tua versione per assicurarti che le istruzioni corrispondano alla tua
esperienza.
Inserisci un nome per il progetto.
Inserisci una posizione del progetto se non vuoi mantenere quella predefinita.
Fai clic su Avanti.
Seleziona una delle dipendenze necessarie per l'applicazione e fai clic su
Crea.
Esaminare un progetto esistente
Puoi estrarre il tuo progetto esistente in Cloud Source Repositories:
Scegli VCS > Get from Version Control (VCS > Ottieni dal controllo delle versioni). In alternativa, vai alla finestra di dialogo di benvenuto e fai clic su Ottieni da VSC.
Seleziona Google Cloud dal menu a discesa Controllo della versione e fai clic su Clona.
Nella finestra di dialogo Clona da Google Cloud, seleziona il progetto Cloud
associato al tuo progetto.
Seleziona il tuo repository Cloud.
Seleziona la directory dei genitori.
Inserisci il Nome directory.
Fai clic su Clona.
Aggiungere il supporto del framework
Per aggiungere il supporto del framework App Engine alla tua applicazione:
Vai a Strumenti > Google Cloud Code > App Engine > Aggiungi supporto App
Engine > Google App Engine standard.
Seleziona il modulo a cui vuoi aggiungere il supporto del framework.
Fai clic su OK.
Se necessario, seleziona la casella di controllo Crea app.yaml.
Fai clic su OK.
Passaggi successivi
Ora che hai creato un'applicazione con il supporto di App Engine, puoi
eseguirne il deployment nell'ambiente flessibile di App Engine.
Assistenza
Per inviare un feedback o segnalare un problema nel tuo IDE IntelliJ, vai a
Strumenti > Cloud Code > Guida / Informazioni > Invia
feedback o segnala un problema per segnalare un problema su GitHub.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eCloud Code primarily supports Java applications within IntelliJ IDEA (Ultimate and Community editions) for App Engine development.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine support in Cloud Code is being deprecated, with Java 8 support ending and App Engine being disabled by default, so it's not recommended to create new App Engine projects.\u003c/p\u003e\n"],["\u003cp\u003eYou can create new applications for App Engine using the IntelliJ New Project wizard or import existing projects from Cloud Source Repositories.\u003c/p\u003e\n"],["\u003cp\u003eTo enable App Engine support in your IDE, go to Settings > Google Cloud Code > App Engine, and to add it to an existing project, navigate to Tools > Google Cloud Code > App Engine > Add App Engine support.\u003c/p\u003e\n"]]],[],null,["# Create an app for the App Engine Flexible Environment in Cloud Code for IntelliJ\n\n| **Caution:** As of January 31, 2024, Java 8 support for App Engine has ended, and will be deprecated on January 31, 2026. As a result, Cloud Code disables App Engine by default. To enable App Engine in your IDE, navigate to **Settings** \\\u003e **Google\n| Cloud Code** \\\u003e **App Engine** . Due to the upcoming deprecation of App Engine, we don't recommend creating new App Engine projects. For more information about App Engine deprecations, see [Feature deprecations](/appengine/docs/standard/deprecations). For more information about the runtime support schedule for App Engine, see [Runtime support schedule](/appengine/docs/standard/lifecycle/support-schedule).\n| **Note:** The following IDEs support this feature:\n|\n| - IntelliJ IDEA - Ultimate\n| - IntelliJ IDEA - Community\n| **Note:** Only Java applications are supported.\n\n[App Engine](/appengine/docs/flexible/java) is a fully\nmanaged, serverless platform for developing and hosting web applications at\nscale.\n\nThis document describes how to create an application (or import\nan existing project) for the App Engine flexible\nenvironment with Cloud Code.\n\nBefore you begin\n----------------\n\n- Install and set up **JetBrains IDE version `2022.3+`** (IntelliJ Ultimate or Community) on the `PATH` of your machine.\n\n\u003c!-- --\u003e\n\n- Install the Cloud Code plugin:\n\n - Open IntelliJ IDEA (or any supported JetBrains IDE).\n - From your plugins marketplace (**File** \\\u003e **Settings** \\\u003e **Plugins** or for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Plugins**), search for the 'Cloud Code' plugin and install it.\n\n You may be prompted to restart your IDE to activate the plugin.\n\nCreate a new application\n------------------------\n\nYou can create a new application by using the new project wizard or by importing\nan existing project in Cloud Source Repositories.\n\n### Use the new project wizard\n\nTo create a new project, you can use the IntelliJ New Project wizard to generate\na template application as the start for your own application.\n\nCreate a new project as follows:\n\n1. Navigate to **File** \\\u003e **New** \\\u003e **Project** to display the **New Project**\n dialog.\n\n2. If you're using IntelliJ Ultimate `2022.3`, choose\n **Jakarta EE** in the left panel.\n\n For more details on creating a new\n Java Enterprise application, see the JetBrains tutorial\n [Your first Java EE application](https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html).\n If you're using an older version of IntelliJ Ultimate, click the\n version dropdown menu at the top-left of the screen (next to the IntelliJ\n IDEA logo) and select your version to ensure the instructions match your\n experience.\n3. Enter a project **Name**.\n\n4. Enter a project **Location** if you do not want to keep the default.\n\n5. Click **Next**.\n\n6. Select any of the dependencies you need for your application and click\n **Create**.\n\n### Check out an existing project\n\nYou can check out your existing project in Cloud Source Repositories:\n\n1. Choose **VCS \\\u003e Get from Version Control** . Alternatively, go to the welcome dialog and click **Get from VSC**.\n2. Select **Google Cloud** from the **Version Control** drop-down and click **Clone**.\n3. In the **Clone from Google Cloud** dialog, select the **Cloud Project** associated with your project.\n4. Select your **Cloud Repository**.\n5. Select the **Parent Directory**.\n6. Enter the **Directory Name**.\n7. Click **Clone**.\n\nAdd framework support\n---------------------\n\nTo add App Engine framework support to your application, follow these steps:\n| **Note:** If you previously configured framework support, you can skip these steps.\n\n1. Navigate to **Tools** \\\u003e **Google Cloud Code** \\\u003e **App Engine** \\\u003e **Add App\n Engine support** \\\u003e **Google App Engine standard**.\n\n2. Select the module you want to add framework support to.\n\n3. Click **OK**.\n\n4. If needed, select the **Create app.yaml** checkbox.\n\n5. Click **OK**.\n\nWhat's next\n-----------\n\nNow that you've created an application with App Engine support, you\ncan deploy it to the\n[App Engine flexible environment](/code/docs/intellij/deploy-flex).\n\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]