Skip to content

firebase007/Serverless-example

Repository files navigation

Serverless example for LogRocket blog

To start the application? Run npm start

Then go to the base url here:===> http://localhost:3000

Path:

/index - base path

/ - To create a new product

/ - To get all the products from the db

/{productId} - To get a product by Id from the db

Payload to create a new product

http://localhost:3000/

Requestbody

 {
  "name": " ",
  "type": " ",
  "cost": "",
  "description": ""
 }