Skip to content

Run your existing HTTP middleware based apps in Serverless

License

Notifications You must be signed in to change notification settings

dan-turner/serverless-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run your existing Node.js HTTP middleware based application in Serverless, on top of AWS Lambda and Amazon API Gateway.

Getting Started

npm install --save serverless-proxy
// handler.js
import ServerlessProxy from 'serverless-proxy';
import app from './src/app';

const appProxy = new ServerlessProxy(app);

export const proxy = (event, context, cb) => appProxy.request(event, context, cb);

Example

The example application that's provided shows how to easily build serverless RESTful API's using the excellent Koa framework. It is also configured for Babel using serverless-webpack

About

Run your existing HTTP middleware based apps in Serverless

Resources

License

Stars

Watchers

Forks

Packages

No packages published