Shop node js aws serverless

This project contains all serverless projects for deploy to aws

Create new service/function

serverless create --template aws-nodejs-typescript --path product-service

Check functions locally

serverless invoke local --function hello //With data --data '{"body": {"name":"John"}}' //With custom request --path ./src/functions/getProductsById/mock.json

Working with each service

You should enter into each service folder and execute next operations:

Deploy

npm run deploy

Test

npm run test

Generate swagger json

  npm run build:doc