generator-serverless-service
v0.1.0
Published
A scaffold for a nodejs Serverless service
Downloads
2
Readme
generator-serverless-service
A scaffold for a nodejs Serverless service
Prerequisites
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
Installation
npm install -g generator-serverless-service
Usage
yo serverless-service:aws-nodejs
Project Stucture
|_ 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
License
MIT © A Cloud Guru