https://github.com/serverless/fdk-tmp
The Serverless Function Development Kit (FDK)
https://github.com/serverless/fdk-tmp
Last synced: 8 months ago
JSON representation
The Serverless Function Development Kit (FDK)
- Host: GitHub
- URL: https://github.com/serverless/fdk-tmp
- Owner: serverless
- License: other
- Created: 2017-01-17T01:43:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T23:08:11.000Z (over 8 years ago)
- Last Synced: 2024-04-09T14:28:10.934Z (over 1 year ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 18
- Watchers: 32
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fdk
=============
The [Serverless](https://serverless.com) Function Development Kit (FDK)
The Serverless FDK is designed to ease the adoption of serverless technology. It provides a simple middleware abstraction for adding functionality and migrating existing solutions (like Express) without having to rewrite your code. It further enables runtime interaction with Serverless Services including invoking functions and dispatching events to the target Service.
## Build Status
[](https://badge.fury.io/js/%40serverless%2Ffdk)
[](https://travis-ci.org/serverless/fdk)
[](https://nodei.co/npm/@serverless/fdk/)
## Usage
```js
// index.js
const fdk = require('@serverless/fdk')
const myHandler = fdk()
.handler(() => 'Hello World')
module.exports.myHandler = myHandler
```
```yaml
# serverless.yml
service:
name: my-service
functions:
myHandler:
handler: index.myHandler
```
## Documentation
[Full API documentation](./docs) - Learn about available methods and concepts.
## Examples
[Plenty of examples](./examples) - Examples for various cloud providers and uses of functionality.
## Install
```js
npm install --save @serverless/fdk
```