Skip to content

codetaming/aws-lambda-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Cookbook

Coding Standard

The JavaScript Code Standard is a JavaScript style guide, with linter & automatic code fixer.

JavaScript Style Guide

Use this badge in the project README.md file:

JavaScript Style Guide

IDE

The preferred IDE is IntelliJ IDEA

IntelliJ and WebStorm support the JacaScript Code Standard and provide setup instructions.

Lambdas

Organisation

Lambdas should be placed in a sub-directory named after the function name under the lambda directory. For example lambda/example-aws-lambda/.

Package.json

To create a new package.json

npm init

The package.json

Node Lambda

The Node Lambda npm package is used to generate template AWS Lambdas and to test locally and deploy.

Adding to project

npm install node-lambda --save-dev

Adding standard

npm install standard --save-dev

and add to test

  "scripts": {
    "test": "standard"
  }

Initialising

Inititalise Node Lambda to create the template files required.

node-lambda setup

Installation

npm install -g node-lambda

Add index.js

index.js

Add aws-sdk

Add the latest version of the aws-sdk for Node.

npm install aws-sdk@latest --save

Run Locally

node-lambda run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published