This sample project is part of my AWS Advent 2016 article about serverless pipelines for serverless apps.
The layout of the project is as follows:
- a
frontend/folder with apackage.jsonwhich will produce a build intobuild/whennpm run buildis called by the pipeline. - a
backend/folder with aserverless.yml. The pipeline will call theserverless deploy(the Serverless framework). It should have at least one http event so that the Serverless framework creates a service endpoint which can then be used in the frontend to call the APIs.
You can try it out yourself by starting a AWS CloudFormation stack (make sure to clone or copy this project first), which will create a serverless deploy pipeline with AWS CodePipeline:
The source repository of the CloudFormation template is here.
MIT
