This repository has been created as a part of the YouTube video: How to Build a Serverless REST API with Node.js, TypeScript, and AWS DynamoDB
It is an implementation of a simple CRUD Product REST API in Node.js and TypeScript with Serverless Framework Infrastructure as a Code to easily deploy it to AWS.
- AWS CLI installed and configured
serverless-framework
node.js
Run:
npm install
or
yarn install
Run:
serverless deploy
- POST /product - creates new product with autogenerated UUID as ProductID
- GET /product/{uuid} - gets a product by UUID
- PUT /product/{uuid} - updates a product by UUID
- DELETE /product/{uuid} - deletes a product by UUID
- GET /products - gets a list of products
MIT.