Add docs for service templates

This commit is contained in:
Philipp Muens 2016-07-15 15:11:23 +02:00
parent ad4ad8a50e
commit ebfca3a329
3 changed files with 15 additions and 2 deletions

View File

@ -50,3 +50,4 @@ You may also take a look at our [code of conduct](/code_of_conduct.md).
- [Building plugins](developing-plugins)
- [How to build your own plugin](developing-plugins/building-plugins.md)
- [How to build provider integration with your plugin](developing-plugins/building-provider-integrations.md)
- [Service templates](service-templates)

View File

@ -4,8 +4,10 @@ Let's create our first Serverless service!
## Creating our service
You can create a service based on a specific template that specifies which provider and runtime to use. To create a
service with a `nodejs` runtime running on `aws` just pass the `aws-nodejs` template to the create command:
You can create a service based on a specific template that specifies which provider and runtime to use (take a look
[here](../service-templates) to learn more about templates).
To create a service with a `nodejs` runtime running on `aws` just pass the `aws-nodejs` template to the create command:
```
serverless create --template aws-nodejs

View File

@ -0,0 +1,10 @@
# Service templates
The `serverless create` command takes a `--template` variable where you can specify a provider and runtime specific
template you'd like to use to kick-start your service development.
Serverless will then copy those files from the template folder into your current working directory.
## Available templates
Take a look [here](/lib/plugins/create/templates) to see all the available templates and explore their content.