Serverless AWS Lambda Function with node.js
Answer:-
-
Serverless services are often called “Functions-as-a-Service” or Faas. A serverless “function” is simply code that runs in response to an event. That’s it.
-
Build serverless applications comprised of microservices that run in response to events, auto-scale for you, and only charge you when they run. This lowers the total cost of maintaining your apps, enabling you to build more logic, faster.
-
The Framework uses new event-driven compute services, like AWS Lambda, Google Cloud Functions, and more. It's a command-line tool, providing scaffolding, workflow automation and best practices for developing and deploying your serverless architecture.
If you want to download it using git, copy paste the link that is presented to you, then run the following at your terminal:
git clone https://github.com/Rahul-Barick/serverless-offline-aws-lambda-starter.git
cd serverless-offline-aws-lambda-starter
npm install
Start the Serverless Offline
sls offline start
or
serverless offline start