0.0.1 • Published 5 years ago
local-lambda-server v0.0.1
local-labda-server
node package that allows you to run AWS HTTP Node Lambda's locally emulating the ALB
Development
Install dependencies
npm installCreate build
npm run buildRun CLI in dev mode with auto-reload
ts-node-dev ./src/bin/lambda-server.tsCLI 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 number0.0.1
5 years ago