0.1.2 • Published 4 years ago
calendar-serverless-api v0.1.2
calendar-serverless-api
Prerequisites
Getting started
- Clone the repo
- Run
npm installat the root of the repo - Run
cdk synthfollowed bycdk deployto deploy the serverless API
Local development (using SAM CLI)
- Add any npm dependencies by running
cd resource && npm install <package-name> && cd .. - Run
cdk synth --no-staging > template.yamlto update the SAM stack for local development - Run
sam local start-apito test locally
More details on this workflow can be seen here
Useful commands
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template