Skip to content

kyledetella/typescript-ncc-serverless-template

Repository files navigation

TypeScript ncc serverless Template

Quickly bootstrap a serverless project.

This creates a serverless project fronted by API Gateway. For a project with direct invocation, see: typescript-ncc-serverless-template-direct.

Features:

Table of Contents

Usage

npx serverless create --template-url https://github.com/kyledetella/typescript-ncc-serverless-template --path <your_app> && \
cd <your_app>

Inside of your new app directory, run:

nvm use && npm i

Development

Install dependencies

nvm use && npm i

Testing locally

This project uses serverless-offline to emulate API Gateway and Lambda functionality.

npm start

The service will be available at http://localhost:4144.

curl -X POST -d '{"foo": "bar"}' http://localhost:4144

Testing

npm t

To run in watch mode:

npm run test:watch

Deployment

npm run deploy

Releases

No releases published

Packages

No packages published