API methods using AWS lambda and serverless framework
yarn global add serverless
mkdir api_folder
cd api_folder
sls create --template aws-nodejs
yarn
mv handler.js handler.ts
yarn add --dev @types/node @types/aws-lambda @types/jest typescript serverless serverless-offline serverless-plugin-typescript serverless-dotenv-plugin jest ts-jest
cp ../template/tsconfig.json ./
sls offline start
cat ~/.aws/credentials
sls deploy