Documentation
Welcome to the Serverless v1.0 documentation.
Here you'll find all the necessary information you need to learn and understand Serverless. You'll find documentation on how to build next generation Serverless applications. Furthermore we'll deep dive into the internals of Serverless so that you know how it works and how you can extend and modify it!
Quick start
Follow these simple steps to install the alpha, create and deploy your first service, run your function and remove the service afterwards.
npm install serverless@1.0.0-alpha.1serverless create --name first-service --provider awsserverless deployserverless invoke --function hello --stage dev --region us-east-1serverless remove --stage dev --region us-east-1
In depth
- Concepts
- Services - Understanding Serverless services
- serverless.yaml - A look at the
serverless.yamlfile - serverless.env.yaml - A look at the
serverless.env.yamlfile - Event sources - Understanding different types of event sources
- Plugins - How plugins work
- Guide
- Tutorials
- Your first service - Create, deploy, invoke and remove your first service
- Event sources - Learn how you can extend your services functionality with event sources
- Plugins
- Core plugins
- AWS plugins
- Compile Functions - Compiles functions to CloudFormation resources
- Compile S3 Events - Compiles S3 events to CloudFormation resources
- Compile Scheduled Events - Compiles scheduled events to CloudFormation resources
- Compile Api Gateway Events - Compiles http events to CloudFormation resources
- Deploy - Deploys the service to AWS
- Invoke - Invokes an AWS lambda function
- Remove - Removes the service with all it's resources from AWS
FAQ
Where do I start when I want to write apps with Serverless?
You should take a look at the tutorials where you will find different guides which will help you with your first application (there's also a "Your first service" tutorial).
I want to integrate provider X. How does this work?
You can implement your provider of choice with he help of plugins. Start by reading the plugin concept to get an overview how plugins work. After that you might want to take a look at the AWS Deploy plugin which will explain to you how the AWS provider is implemented / works.
We'd recommend to take a look at the different sources of the plugins as they show implementation details and best practices which will help you integrate your provider easily.
How does Serverless work?
The concepts folder in the docs will help you understand how Serverless works.
I found a bug / encountered a strange error
Please take a look at our issues to see if someone else has faced the same problem.
Contributions are always welcomed! Just open up a new issue to start the discussion or submit a pull request which fixes the bug.