Once you've set up your sample repository, you can start creating applications with these samples.
Alternatively, you can import the Cloud Code custom sample sample repository if you'd just like to try out custom samples. To better understand how custom sample repositories are set up, it is recommended that you try cloning the repository and modifying its structure and content before importing it. You can do this by creating new samples within the repository or modifying the source code to create your own versions of the Hello World or Guestbook apps.
Creating your app from an imported sample
To create a new application using one of the samples from your sample repository, follow these steps:
Copy the Git URL of the sample repository that you'd like to use.
From the Cloud Code status bar menu, select New Application.
Select the Custom Application option when prompted for the type of sample you'd like to use.
Select Import Sample from Repo.
Enter the Git URL you copied earlier when asked for the URL.
The URL in this example is of the HTTPS GitHub format:
Troubleshooting tip: If you're having trouble with Git authentication, ensure that your Cloud Shell git login is set up properly. See the Using version control with Cloud Shell Editor guide for details.
Check the terminal window in your IDE to confirm your repository has been cloned successfully.
The repository's default branch is automatically used. You can edit the branch in use or the repository URL in your settings.json, amending the custom sample's details under
cloudcode.customApplications. Then, click the refresh button in the upper right corner after selecting the Custom Application option.
If your repository wasn't cloned successfully, you can use the Manage Repositories option to update your sample repository details with a valid Git URL and/or branch.
From the list of updated samples, select the one you'd like to use.
Fill in your project name and location in the resulting dialog and click Create New Application.
Cloud Code creates your app using your chosen sample and opens it for use.