Quickly bootstrap a serverless project using TypeScript (built with ncc).
This creates a serverless project intended for direct lambda invocation. For a project fronted by API Gateway, see https://github.com/kyledetella/typescript-ncc-serverless-template.
Features:
Table of Contents
npx serverless create --template-url https://github.com/kyledetella/typescript-ncc-serverless-template-direct --path <your_app> && cd <your_app>Inside of your new app directory, run:
nvm use && npm invm use && npm inpm startThis will rebuild your project as you make changes. You can invoke your function(s) locally by:
serverless invoke local -f mainRun
serverless invoke local --helpfor more options
npm tTo run in watch mode:
npm run test:watchnpm run deploy