README
calendar-serverless-api
Prerequisites
Getting started
- Clone the repo
- Run
npm install
at the root of the repo - Run
cdk synth
followed bycdk deploy
to 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.yaml
to update the SAM stack for local development - Run
sam local start-api
to test locally
More details on this workflow can be seen here
Useful commands
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template