Skip to content

Global-localhost/cloud-code-custom-templates-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Custom Template Repository

This repository is an example Custom Template Repository that can be used with the Cloud Code plugins for VSCode and IntelliJ.


Contents

.cctemplate

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.

hello-world

A sample golang template. You can see an entry for this template in the .cctemplate file.

kubernetes-custom-template/nodejs

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.


Usage

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!

  1. Install Cloud Code for IntelliJ or VS Code

  2. 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.

  1. Clone this repository

  2. Create a new directory containing your own template (or make changes to any of the sample templates)

  3. Make any necessary updates to the templates in the .cctemplate file

  4. Import your local, updated repository into Cloud Code


Sign up for user research

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.


Contributing

Contributions welcome! Be sure to read our contributing guide and Code of Conduct.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.4%
  • Pug 23.7%
  • CSS 14.9%
  • Dockerfile 5.2%
  • Go 0.8%