I joined a project which was half developed and I am trying to understand how to run the backend APIs locally.

So when a client hit a request it will go to AWS API Gateway goes to Lambda which then the lambda function which will get a response from the handler and send it back to the client.

I am still learning about this and not sure if it is written or not but I guess this is how the backend is working. But here comes the problem there is no script to run the backend locally for development there is only one deploy script in the package.json which is

rm -rf node_modules/
yarn install --frozen-lockfile
SLS_DEBUG=* sls deploy -v

which is a bash script so is there any way to test this backend locally before actually deploying it every time i make changes.

1 Answer 1


You could use Invoke Local to run the function locally before doing the sls deploy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.