berkerozer / serverless-product-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:TypeScript 100.0%