Developing Shopify Apps with AWS SAM

Step 1: Create a new app

npm init @shopify/app@latest

Step 2: Init SAM

mkdir web/sam-app
sam init --name sam-app --runtime nodejs18.x --dependency-manager npm

The SAM command needs to be corrected and

Step 3: Add web/sam-app/shopify.web.toml

type="backend"
port=3000

[commands]
dev = "sam local start-api"

I've added the port option and changed the dev command