mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Add docs for service templates
This commit is contained in:
parent
ad4ad8a50e
commit
ebfca3a329
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
10
docs/service-templates/README.md
Normal file
10
docs/service-templates/README.md
Normal 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.
|
||||
Loading…
x
Reference in New Issue
Block a user