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:
- Open File > New Project.
- Select Cloud Code: Kubernetes.
- Select a template from the list of starter applications.
If you're using IntelliJ IDEA, you'll be prompted to specify where your container image is stored.
For more details on container registry formats and image name creation, refer to the Configuring container image settings guide.
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'.
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.
- Select the 'Run Configuration' drop down, and click 'Edit Configurations'.
- Click the '+' Add New Configuration button to add a new Run Configuration.
Browse to 'Cloud Code: Kubernetes'.
Fill in a name for your new Configuration.
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.