There is a way to use serverless on your local machine. you have to use a node package named serverless-offline
. but to use that you have to initialize a serverless project and mention this plugin in serverless.yml file
After initializing the serverless project, you have to install serverless-offline
using command npm i -D serverless-offline
and then add this plugin inside serverless.yml file under plugins like this
plugins:
- serverless-offline
After that you have to start the serverless with serverless offline
command. This will start the server on your local machine