An open API service indexing awesome lists of open source software.

https://github.com/motdotla/node-lambda-template

The bare minimum for a node.js app running on Amazon Lambda.
https://github.com/motdotla/node-lambda-template

Last synced: 3 months ago
JSON representation

The bare minimum for a node.js app running on Amazon Lambda.

Awesome Lists containing this project

README

          

If you found this useful, consider also checking out [dotenv-vault](https://github.com/dotenv-org/dotenv-vault). Thank you! 😇

# node-lambda-template

![node-lambda-template](../master/node-lambda-template.png?raw=true)

The bare minimum for a node.js app running on [Amazon Lambda](http://aws.amazon.com/lambda/).

It uses [node-lambda](https://github.com/motdotla/node-lambda) under the hood to locally run and also deploy your node.js Amazon Lambda application.

## Install

Clone this repository.

```
cd /to/your/template/path
npm install
```

## Usage

There are 4 available commands to use on this template. For more info and usage descriptions, see the [node-lambda](https://github.com/motdotla/node-lambda) repository.

```
cd /to/your/template/path
npm run setup # setup node-lambda files
npm run test # test your event handler and check output
npm run package # just generate the zip that would be uploaded to AWS
npm run deploy # deploy to AWS
```