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:
frontend/folder with a
package.jsonwhich will produce a build into
npm run buildis called by the pipeline.
backend/folder with a
serverless.yml. The pipeline will call the
serverless 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: