# Serverless **Repository Path**: wx_6c855ab20c/serverless ## Basic Information - **Project Name**: Serverless - **Description**: The Serverless Framework ——快速部署你的 Serverless 应用,支持事件触发,弹性扩缩容,并且按需付费。从而大大降低构建和维护应用的开销,供开发者专注业务逻辑 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-01-20 - **Last Updated**: 2021-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 👋🏾 **Please consider donating to these organizations to help fund an education in _technology_, _entrepreneurship_ and _leadership_ for POC. #BLM** - [Hidden Genius Project](https://www.hiddengeniusproject.org/donate/) - [Black Girls Who Code](https://www.blackgirlscode.com/) - [Code2040](https://code2040-2020.funraise.org/) --- [](http://serverless.com) [](http://www.serverless.com) [](https://github.com/serverless/serverless/actions?query=workflow%3AIntegrate) [](https://badge.fury.io/js/serverless) [](https://codecov.io/gh/serverless/serverless) [](https://gitter.im/serverless/serverless) [](https://snyk.io/test/github/serverless/serverless) [](https://www.npmjs.com/package/serverless)
English | 简体中文
[Website](http://www.serverless.com) • [Docs](https://serverless.com/framework/docs/) • [Newsletter](https://serverless.com/subscribe/) • [Swag](https://teespring.com/stores/serverless) • [Gitter](https://gitter.im/serverless/serverless) • [Forum](http://forum.serverless.com) • [Meetups](https://www.meetup.com/pro/serverless/) • [Twitter](https://twitter.com/goserverless) • [We're Hiring](https://serverless.com/company/jobs/) • [Try Pro](https://dashboard.serverless.com) **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 Cloud Functions, 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 overview here. In 2020, the Serverless Framework began introducing advanced functionality for specific serverless use-cases, known as Serverless Framework Components. Check out the Components featured below, [and more here](https://github.com/serverless-components). | [](https://github.com/serverless-components/fullstack-app) | [](https://github.com/serverless-components/express) | [](https://github.com/serverless-components/website) | [](https://github.com/serverless-components/aws-dynamodb) | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ## Contents
- [Quick Start](#quick-start)
- [Examples](https://github.com/serverless/examples)
- [Services](#services)
- [Features](#features)
- [Plugins](https://github.com/serverless/plugins)
- [Contributing](#contributing)
- [Community](#community)
- [Consultants](#consultants)
- [Licensing](#licensing)
- [Previous Version 0.5.x](#v.5)
## Quick Start
1. **Install via npm:**
```bash
npm install -g serverless
```
2. **Set-up your [Provider Credentials](./docs/providers/aws/guide/credentials.md)**. [Watch the video on setting up credentials](https://www.youtube.com/watch?v=HSd9uYj2LJA)
3. **Create a Service:**
You can create a new service or [install existing services](#how-to-install-a-service).
```bash
# Create a new Serverless Service/Project
serverless create --template aws-nodejs --path my-service
# Change into the newly created directory
cd my-service
```
4. **Deploy a Service:**
Use this when you have made changes to your Functions, Events or Resources in `serverless.yml` or you simply want to deploy all changes within your Service at the same time.
```bash
serverless deploy -v
```
5. **Deploy the Function:**
Use this to quickly upload and overwrite your AWS Lambda code on AWS, allowing you to develop faster.
```bash
serverless deploy function -f hello
```
6. **Invoke the Function on AWS:**
Invokes an AWS Lambda Function on AWS and returns logs.
```bash
serverless invoke -f hello -l
```
7. **Invoke the Function on your machine:**
Invokes an AWS Lambda Function on your local machine and returns logs.
```bash
serverless invoke local -f hello -l
```
8. **Fetch the Function Logs:**
Open up a separate tab in your console and stream all logs for a specific Function using this command.
```bash
serverless logs -f hello -t
```
9. **Remove the Service:**
Removes all Functions, Events and Resources from your AWS account.
```bash
serverless remove
```
### How to Install a Service:
This is a convenience method to install a pre-made Serverless Service locally by downloading the Github repo and unzipping it. Services are listed below.
```bash
serverless install -u https://github.com/your-url-to-the-serverless-service
```
Check out the [Serverless Framework Guide](./docs/providers/aws/guide/README.md) for more information.
## Services (V1.0)
The following are services you can instantly install and use by running `serverless install --url