mrserverless / serverless-golang

AWS Lambda Go functions using Serverless Framework and Python shim
Other
302 stars 21 forks source link

Create serverless template #5

Closed mrserverless closed 7 years ago

mrserverless commented 7 years ago

So that users can just run:

serverless create --template aws-golang-shim

and

serverless create --template aws-golang-net

Rather than copy and paste form this sample project

cristim commented 7 years ago

I looked into this and it seems easy to do, we just need to insert the content of this repo (with maybe minor changes) at https://github.com/serverless/serverless/tree/master/lib/plugins/create/templates

cristim commented 7 years ago

It turns out the proper place for such community templates is https://github.com/serverless/examples.

We should create a PR there.

cristim commented 7 years ago

Working on a PR now to have it mentioned there.

In the meantime I noticed that this already works, and we could document it as installation method in our readme:

serverless install -u https://github.com/yunspace/serverless-golang -n my-golang-project

cristim commented 7 years ago

Documentation changes were implemented in #6

mrserverless commented 7 years ago

Thanks @cristim! 10 steps ahead as usual! #6 which has been merged now.

For the community templates I will raise a PR once I finish refactoring #7

cristim commented 7 years ago

The PR was already raised, see https://github.com/serverless/examples/pull/133

mrserverless commented 7 years ago

Awesome, in that case I will update the serverless examples when my changes are merged

mrserverless commented 7 years ago

7 is merged and there are now 2 ways to install serverless-golang for either net or event approach. See README for more details. Closing this and will follow up with serverless/examples#133 separately.