nodeboot-server-lambda
Installation
SKILL.md
Node-Boot on AWS Lambda
Use @nodeboot/lambda-server when one Lambda should front the whole Node-Boot router.
Fresh start or existing app?
Read ../_shared/fresh-vs-existing.md first, then apply it here:
- Fresh start:
npx degit nodejs-boot/node-boot/samples/sample-lambda my-app. - Existing app: look for a
handler.tsexportinghandleralongside@nodeboot/lambda-serverinpackage.jsonto confirm this adapter is (or isn't) already wired.
Minimal handler
Grounded in samples/sample-lambda/src/handler.ts:
import {APIGatewayProxyEvent, APIGatewayProxyResult, Context} from "aws-lambda";
import {LambdaHandler, LambdaServer} from "@nodeboot/lambda-server";
import {LambdaSampleApp} from "./app";