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 buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testsnpm run deploydeploy this stack to your default AWS account/regionnpm run diffcompare deployed stack with current statenpm run cleandestroy all stacks on AWS account/region