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


dev = "sam local start-api"

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