The ECommerce API is a descentralized API to create a full Ecommerce Backend structure using CDK.
HTTP METHOD | POST | GET | PUT | DELETE |
---|---|---|---|---|
CRUD Products | CREATE | READ | UPDATE | DELETE |
CRUD Orders | CREATE | READ | UPDATE | DELETE |
/products | Ok (201) | Error (404) | Error (404) | Error (404) |
/products/:id | Ok (201) | Error (404) | Error (404) | Error (404) |
/orders | Ok (201) | Error (404) | Error (404) | Error (404) |
/orders?email | Ok (201) | Error (404) | Error (404) | Error (404) |
/orders?email&orderId | Ok (201) | Error (404) | Error (404) | Error (404) |
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpm run deploy
deploy this stack to your default AWS account/regionnpm run diff
compare deployed stack with current statenpm run clean
destroy all stacks on AWS account/region