@rpoc/generator-serverless
v3.1.0
Published
Yeoman generators for the serverless framework for creating rapid proof-of-concepts
Downloads
12
Maintainers
Readme
Yeoman generator for Rapid Proof-of-Concepts in Serverless
A collection of Serverless generators for developing Rapid Proof-of-Concepts.
Node version
Using the latest major LTS node version, currently Node 8.
Installation
nvm install 8.10
npm install -g serverless yo @rpoc/generator-serverless
Generators
Base
Sets up a unit-tested RESTful API serverless application for AWS API Gateway, Lambda, DynamoDB, and Cognito authorizer for Lambda functions.
- AWS-SDK
- Axios
- Chai
- Editorconfig
- Eslint
- Mocha
- Nyc
- Proxyquire
- Sinon
- UUID
nvm use 8.10
serverless create --template aws-nodejs --path myapi
cd myapi
npm init
yo @rpoc/serverless:base
CRUD
Add a Resource with create, read, update, and delete REST API.
Requires @rpoc/serverless:base
generator to have been run
nvm use
yo @rpoc/serverless:crud
Interaction
To interact with the API, see either AWS Amplify Authentication Guide and AWS Amplify API Guide, or try out our rpoc/generator-react that'll set up everything for you.
LICENSE
Copyright 2018 Robert Brewitz Borg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.