local-lambda-server
v0.0.1
Published
node package that allows you to run AWS HTTP Node Lambda's locally emulating the ALB
Downloads
4
Readme
local-labda-server
node package that allows you to run AWS HTTP Node Lambda's locally emulating the ALB
Development
Install dependencies
npm install
Create build
npm run build
Run CLI in dev mode with auto-reload
ts-node-dev ./src/bin/lambda-server.ts
CLI Usage
Usage: npx 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