Create an application in Cloud Code for IntelliJ

Stay organized with collections Save and categorize content based on your preferences.

Creating an application from a template

Cloud Code comes with a collection of starter templates to get you started quickly. To create a Kubernetes application using an existing sample, follow these steps:

  1. Open File > New Project.
  2. Select Cloud Code: Kubernetes.
  3. Select a template from the list of starter applications. List of templates available: Python, Go, NodeJS, Java hello world and guestbook applications

  4. Pick a name for your project.

    Once you click Finish, Cloud Code will clone your chosen template and open your newly created project for use.

    For Java templates, you'll be prompted to import Maven projects to sync your pom.xml. Click Add as Maven project. Additionally, import necessary Maven projects by clicking Import Changes.

  5. Kubernetes run and development IDE run targets for the project are automatically created and ready to run.

    Optional: Alternatively, you can manually create run targets:

    1. Select the Run Configuration drop down, and click Edit Configurations.
    2. Click + Add New Configuration to add a new run configuration.
    3. Navigate to Cloud Code: Kubernetes.

      Cloud Code: Kubernetes option in menu

    4. Enter a name for your new configuration (default is "Unnamed").

    5. Click OK to create your run target.

Using your own application

If you'd like to use a project of your own, refer to this guide on setting up your application.

Getting support

To submit feedback or report an issue in your IntelliJ IDE, go to Tools > Cloud Code > Help / About > Submit feedback or report an issue to report an issue on GitHub, or ask a question on Stack Overflow.

You can also join the #cloud-code channel, which is part of the Google Cloud Slack community.