generator-serverless-service
generator-serverless-service copied to clipboard
generator-serverless-service
![Coverage percentage](https://coveralls.io/repos/ACloudGuru/generator-serverless-service/badge.svg)
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