A scaffold for a nodejs Serverless service
This project relies on Yeoman, direnv and a Node version manager.
First, install Yeoman
npm install -g yo
Second, install direnv. OSX users can install direnv using Homebrew
brew install direnv
Add the following line to your .bash_profile
eval "$(direnv hook bash)"
npm install -g n
npm install -g generator-serverless-service
yo serverless-service:aws-nodejs
|_ src
|_ index.js // put handlers here
|_ index.test.js // jest tests
|_ package.json // save lambda dependencies here
|_ .editorconfig
|_ .eslintignore
|_ .eslintrc.yml // eslint config
|_ .gitignore
|_ .node-version // set node version to 6.10.2
|_ .travis.yml // deploy project with travis
|_ README.md
|_ package.json
|_ serverless.yml // configure your serverless service
MIT © A Cloud Guru