This repository is an example Custom Template Repository that can be used with the Cloud Code plugins for VSCode and IntelliJ.
The .cctemplate is a Template Descriptor file that describes the contents of your repository so that Cloud Code knows where to look for your templates. It should look something like the following:
{
"metadata": {
"version": "1"
},
"templates": [
{
"path": "path/to/my/template",
"name": "My Template",
"description": "This template helps you create something amazing!"
},
...
]
}
There is an example .cctemplate file in this repository that you can review, and you can learn more about the Template Descriptor schema here.
A sample golang template. You can see an entry for this template in the .cctemplate file.
A sample Node.js template with a frontend and backend service. This template uses MongoDB as a database and runs on Kubernetes. You can see an entry for this template in the .cctemplate file.
To see an example of how the Custom Templates feature of Cloud Code works, you can configure your IDE to recognize this repository and create applications based on the templates within. Follow the steps below to see Custom Templates in action!
-
Import the Custom Template repo on IntelliJ or VS Code, using this repo's Git URL:
https://github.com/GoogleCloudPlatform/cloud-code-custom-templates-example.git
You can create your own Custom Template repo using this repository as a base.
-
Clone this repository
-
Create a new directory containing your own template (or make changes to any of the sample templates)
-
Make any necessary updates to the templates in the
.cctemplatefile -
Import your local, updated repository into Cloud Code
We want to hear your feedback!
The Cloud Code team is inviting our user community to sign-up to participate in Google User Experience Research.
If you’re invited to join a study, you may try out a new product or tell us what you think about the products you use every day. At this time, Google is only sending invitations for upcoming remote studies. Once a study is complete, you’ll receive a token of thanks for your participation such as a gift card or some Google swag.
Sign up using this link and answer a few questions about yourself, as this will help our research team match you to studies that are a great fit.
Contributions welcome! Be sure to read our contributing guide and Code of Conduct.