This is a serverless project using TypeScript with AWS CDK.
- Node version 14 or later
- npm version 7 or later
- awscli v2
- AWS CDK Toolkit
- AWS API Gateway
- AWS Lambda Function
- AWS S3 Bucket
To start the Development, run npm install to setup the package dependencies in the root project.
The cdk.json file tells the CDK Toolkit how to execute your app.
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
To build the project, run npm run build in the root project. This command will run npm run build on all packages.
See AWS CDK Documentation for more information.
We have Unit tests to check the components created by the CDK Stack.
-
Snapshot Test
-
Assertion Test
- Creation of S3 Bucket
- Creation of ApiGateway
- Creation of Lambda Funtion
- Install the dependencies
npm install
- Run the tests
npm run build && npm test
The repository can be cloned for local development.
MIT License
