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