npm run emulate
run serverless locally (with hot reload - localhost:3000)npm run offline
runserverless offline
(official serverless offline emulator)
npm run bundle
npm run deploy
cd serverless
move to serverless foldernpm install
install packages forserverless
cd ..
back to root folder, which can use npm script of the reponpm run deploy
bundle serverless and deploy
npm run emulate
actually allows us "inspect" our node.js application in Chrome Devtool - there will be an green icon of Node.js in Chrome Debugger panel for us to inspect (of course, with hot code injection).