lambda-framework-aws
Version:
AWS Lambda implementation of Lambda Framework
49 lines (34 loc) • 2.1 kB
Markdown
//coveralls.io/repos/github/rogelio-o/lambda-framework-aws/badge.svg?branch=master)](https://coveralls.io/github/rogelio-o/lambda-framework-aws?branch=master) [](https://travis-ci.org/rogelio-o/lambda-framework-aws) [](https://badge.fury.io/js/lambda-framework-aws)
AWS Lambda implementation of Lambda Framework.
```typescript
import { App, IApp, ITemplateRenderer } from "lambda-framework";
import { AWSHandler } from "lambda-framework-aws";
const app: IApp = new App();
...
const handler: AWSHandler = new AWSHandler(app);
export const handle = handler.handle.bind(handler);
```
```typescript
import { App, IApp } from "lambda-framework";
import { AWSHandler, S3TemplateLoader } from "lambda-framework-aws";
import { DustTemplateRenderer } from "lambda-framework-dustjs";
const app: IApp = new App();
...
const cachedTime: number = 3000;
const templateRenderer: ITemplateRenderer = new DustTemplateRenderer(new S3TemplateLoader("bucket-name", cachedTime));
app.addTemplateEngine(templateRenderer);
...
```
- [Core](https://github.com/rogelio-o/lambda-framework)
- [AWS Lambda implementation](https://github.com/rogelio-o/lambda-framework-aws)
- [Google Cloud Functions implementation](https://github.com/rogelio-o/lambda-framework-gcloud)
- [DustJS template engine implementation](https://github.com/rogelio-o/lambda-framework-dustjs)
- [Examples](https://github.com/rogelio-o/lambda-framework-examples)
All contributors will be welcome. You can contributing by implementing/fixing/answering one open [issue](issues), by suggesting new features for the framework,... For more info about contributing, you can read [the contributing file of the core project](https://github.com/rogelio-o/lambda-framework/CONTRIBUTING.md).
Make it happen.
[![Coverage Status](https: