Skip to content

mesh1nek0x0/node-lambda-starter-kit

Repository files navigation

node-lambda-starter-kit

Enable to focus on cording with node-lambda.

CircleCI

๐Ÿ“Œ Description

Suitable for minimal AWS Lambda.

โœ… Features

  • WIP โœจ powered by node-lambda
  • ๐ŸŽจ support .editorconfig
  • ๐Ÿ‘• support lint with eslint
  • ๐Ÿƒ support test&coverage with jest
  • ๐Ÿ”„ support CircleCI

๐Ÿ’พ Install

Requirements

  • node v8.10+
  • yarn v1.3.2+

Step

  1. Install
$ git clone ...
$ yarn install

You can also fork this repository.

โ–ถ๏ธ Usage

invoke local

$ yarn invoke

run test

$ yarn test

run eslint

$ yarn lint

deploy lambda

โ€ปSetting up AWS-CLI configuration yet? see here

At first, overwrite .env. Your lambda role arn & region & function name(OS X example bellow)

$ sed -i '' 's/\(AWS_ROLE_ARN=\).*/\1<your_lambda_arn>/' .env
$ sed -i '' 's/\(AWS_REGION=\).*/\1<your_region>/' .env
$ sed -i '' 's/\(AWS_FUNCTION_NAME=\).*/\1<your_lambda_name>/' .env

Then, you can deploy like bellow.

$ yarn deploy

โ„น๏ธ Anything else

Nothing

๐Ÿ“ Author

mesh1nek0x0

๐Ÿ“‹ LICENCE

node-lambda-starter-kit is licensed under the MIT license.

node-lambda-starter-kit uses 3rd party libraries, each with their own license. These are found here.

About

Enable to focus on cording with node-lambda

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published