fastly / compute-starter-kit-rust-default

Default package template for Rust based Compute projects
https://fastly.dev/solutions/starters/compute-starter-kit-rust-default/
MIT License
50 stars 21 forks source link

Idea: Turn this into a Template Repository #25

Closed JakeChampion closed 3 years ago

JakeChampion commented 3 years ago

Howdy 👋

First off, this is a great starter kit, thank you for creating and updating it.

I was thinking it might be simpler/easier for people to use if you turned on the Template Repository feature.

The features enables people to quickly create a new repository with the contents of the starter kit.

Here is what the button looks like when viewing a Template Repository. screenshot of the google eleventy-high-performance-blog template repository

To turn on the template feature you tick a box in the main settings page.

screenshot of the repository main settings page

I've forked this repository and turned it into a template repository for you to have a look at and try out pressing the "Use this template" button -- https://github.com/JakeChampion/compute-starter-kit-rust-default

kailan commented 3 years ago

Hey @JakeChampion, this is a great idea and I had thought of the same myself. Unfortunately, part of the process of creating a new C@E service is the initialization of a corresponding service on the Fastly API, which happens when you run fastly compute init. It is possible that extra steps could be added to this command in the future too.

For this reason I would encourage customers to use fastly compute init --from=<repo-url>, rather than cloning template repositories directly, to ensure a service is in place and fastly compute deploy will work out of the box.

kailan commented 3 years ago

Hi Jake, hope you are keeping well. We recently updated the Fastly CLI to move service initialisation to the first execution of compute deploy, so I have now made this a template repository. Thanks for the suggestion!