The JavaScript Code Standard is a JavaScript style guide, with linter & automatic code fixer.
Use this badge in the project README.md file:
The preferred IDE is IntelliJ IDEA
IntelliJ and WebStorm support the JacaScript Code Standard and provide setup instructions.
Lambdas should be placed in a sub-directory named after the function name under the lambda directory. For example lambda/example-aws-lambda/.
To create a new package.json
npm init
The package.json
The Node Lambda npm package is used to generate template AWS Lambdas and to test locally and deploy.
npm install node-lambda --save-dev
npm install standard --save-dev
and add to test
"scripts": {
"test": "standard"
}
Inititalise Node Lambda to create the template files required.
node-lambda setup
npm install -g node-lambda
Add the latest version of the aws-sdk for Node.
npm install aws-sdk@latest --save
node-lambda run