sls create --template aws-nodejs-typescript --path createProduct
https://ej64rpzdqi.execute-api.us-east-1.amazonaws.com/dev/products
https://ej64rpzdqi.execute-api.us-east-1.amazonaws.com/dev/products/{id}
Inside /seed folder
products.sh
stocks.sh
Here is the FE calling the API with dynamo db integrated
https://serverless-frontend-1.s3.amazonaws.com/index.html
The following command can be used to test the createProduct function locally
sls invoke local -f createProduct --data '{"headers":{"Content Type": "application/json"},"body": {"title":"Chair", "description":"good chair", "price": 100, "count":10}}'