1.2.2 • Published 6 years ago

lambda-framework-aws v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

AWS Lambda implementation

Coverage Status Build Status npm version

AWS Lambda implementation of Lambda Framework.

How to use it?

Creating the AWS Lambda handler

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);

Using S3 to retrieve the templates

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);
...

Lambda Framework projects

Contributions

All contributors will be welcome. You can contributing by implementing/fixing/answering one open issue, by suggesting new features for the framework,... For more info about contributing, you can read the contributing file of the core project.

Make it happen.

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago