node package that allows you to run AWS HTTP Node Lambda's locally emulating the ALB
npm install
npm run build
ts-node-dev ./src/bin/lambda-server.ts
ts-node-dev ./src/bin/lambda-server.ts --definitionFile=./example/local-lambda-definition.json
curl localhost:3001/hello
Usage: npx local-lambda-server [options]
Commands:
help Display help
version Display version
Options:
-d, --definitionFile JSON file contaning lambda definitions
e.g. labda-definition.json [
{
"url": "/v1/hello",
"lambdaFilePath": "./hello",
"handlerFn": "handler"
}
]
-h, --help Output usage information
-p, --port <n> The port on which the server will be running (defaults to 3001)
-v, --version Output the version number