0.0.1 • Published 3 years ago

local-lambda-server v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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