Skip to content

ttarnowski/serverless-product-api

Repository files navigation

How to Build a Serverless REST API with Node.js, TypeScript, and AWS DynamoDB

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.

Prerequisites

Installation

Run:

npm install

or

yarn install

Deployment

Run:

serverless deploy

Endpoints

  • 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

Licence

MIT.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published