2.7.1 • Published 7 years ago
generator-ctplambda v2.7.1
generator-ctplambda
A yeoman generator for Java AWS lambda projects.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
The resulting folder-structure looks like this:
|____projectName
| |____src
| | |____main
| | | |____java
| | | | |____groupID
| | | | | |____connector
| | | | | |____function.impl
| | | | | | |____YourLambdaHandlerHere
| | | | | |____model
| | | | | |____http.handler
| | | | | |____property
| | | | | |____util
| | |____resources
| | | |____application.properties
| | |____test
| | | |____java
| | | | |____groupID
| | | | | |____tests
| | | | | | |____projectName
| | | | | | | |____LambdaFunctionHandlerTest.java
| |____build.gradle
| |____serverless.templatePrerequisites
Yeoman generator is a npm module, your machine should have Node and npm installed. Follow these links on how to install Node, and npm is installed with Node.
Installation
Yeoman comes with npm, so install it first and then call:
npm install -g yo
npm install -g generator-ctplambdaOnce you have the package, you can create a scaffold using:
yo ctplambdaThis builds the skeleton. Afterwards modify the sources and build the package with:
./${artifactID}where ${artifactID} will be the name of your project.