-
Overview
-
Introduction
2.1 Introduction
2.2 Target audience
2.3 What is event driven architecture
2.4 What is the AWS SST
2.5 What is single table design
2.6 Description of the services used
-
Prerequisite
3.1 Create an AWS account
3.2 Install the AWS CLI
3.3 Install the SST
3.4 Download postman
-
Designing the single table database.
4.1 Introduction to single table design
4.2 Designing e-commerce single table database
-
Setup
5.1 Initialize project
5.2 Clean up
-
Resources stack
6.1 Introduction
6.2 Define lambda to pull from SQS
6.3 Define SQS resource
6.4 Define dynamodb table
6.5 define_functions_give_permissions_and_api_routes
-
Load product
7.1 load product handler
7.2 test
-
List products
8.1 list products handler
8.2 test
-
Get product
9.1 Get product by id
9.2 Test
-
Cart
10.1 Setup
10.1 Add product to cart
10.2 List user cart items
10.3 test
-
Order
11.1 Setup
11.1 Place an order
11.2 List order history
11.3 test
-
Conclusion
12.1 Conclusion
This is a blank project for CDK development with TypeScript.
The cdk.json
file tells the CDK Toolkit how to execute your app.
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