| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This architecture is designed to be used with Node.js projects, but it can be changed to any language.
Note: Requires a node version >= 4
$ npm installAll commands are defined as scripts in packages.json
.
├── LICENSE
├── README.md
├── bin
│ ├── build.sh
│ ├── create.sh
│ └── deploy.sh
├── config
│ └── templates
│ ├── lambda-spec.tpl.js - Spec test template
│ ├── lambda.config.tpl.js - Lambda config template
│ └── lambda.tpl.js - Lambda handler template
├── gulpfile.js
├── package.json
├── src
│ └── lambdas
├── tests
│ └── index-spec.js
└── webpack.config.js$ APP=myLambda npm run createThis command will create 3 files:
$ npm testThis will run all tests for all lambda functions or you can run without npm with:
$ mocha ./tests/myLambda-spec.js --compilers js:babel-registerPROTIP If do you choose run it without npm please install mocha as global before
$ npm install mocha -g
Before Deploy you have to get the AWS Lambda Role Arn
$ ROLE_ARN=xxxx APP=myLambda npm run deployYou can contribute just opening new issues here or sending a pull request with tests
| Back | FazBrowse Home | New Git URL |