serverless / serverless
- четверг, 13 октября 2016 г. в 03:14:46
JavaScript
Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –
Website • Docs • Newsletter • Gitter • Forum • Meetups • Twitter
The Serverless Framework – Build applications comprised of microservices that run in response to events, auto-scale for you, and only charge you when they run. This lowers the total cost of maintaining your apps, enabling you to build more logic, faster.
The Framework uses new event-driven compute services, like AWS Lambda, Google CloudFunctions, and more. It's a command line tool, providing scaffolding, workflow automation and best practices for developing and deploying your serverless architecture. It's also completely extensible via plugins.
Serverless is an MIT open-source project, actively maintained by a full-time, venture-backed team.
Watch the video guide here or follow the steps below to create and deploy your first serverless microservice in minutes.
Install via npm:
npm install -g serverless
Set-up your provider credentials
Create a service:
serverless create --template aws-nodejs --path my-service
cd my-service
Deploy a service:
serverless deploy
Deploy an individual function, without triggering a CloudFormation stack update (faster):
serverless deploy function -f myfunction
Invoke a function:
serverless invoke --function hello
Fetch the logs of a function:
serverless logs --function hello --tail
Install an existing service from Github:
serverless install --url https://github.com/pmuens/serverless-crud
Remove the service and its resources from AWS:
serverless remove
Check out our in-depth Guide to Serverless for more information.
The following are services you can instantly install and use by running serverless install --url <service-github-url>
Note: the serverless install
command will only work on V1.0 or later.
Use these plugins to overwrite or extend the Framework's functionality...
We want to make sure that you and your team don't have to manage or think about Servers in your day to day development. Through AWS Lambda and similar Function as a Service providers you can focus on building your business code without having to worry about operations. While there are of course still servers running, you don't have to think about them. This turns you into a Serverless Team and thats why we think Serverless is a fitting name.
We love our contributors! Please read our Contributing Document to learn how you can start working on the Framework yourself.
Check out our help-wanted or help-wanted-easy labels to find issues we want to move forward on with your help.
These consultants use the Serverless Framework and can help you build your serverless projects.
Below are projects and plugins relating to version 0.5 and below. Note that these are not compatible with v1.0 but we are working diligently on updating them. Guide on building v1.0 plugins
You can read the v0.5.x documentation at readme.io.
Serverless Projects are shareable and installable. You can publish them to npm and install them via the Serverless Framework CLI by using $ serverless project install <project-name>
Serverless is composed of Plugins. A group of default Plugins ship with the Framework, and here are some others you can add to improve/help your workflow:
_meta/variables
across your team.