Generate related types, with some inconsistencies, in JSDocs and TypeScript types. Scripts auto generate so naming conventions could be way off.
- Create the
.envfile based on.env.exampleTUNNEL_URL: The tunnel URL, I prefer Cloudflare Tunnels.API_VERSION: The API version. Example:2025-04
- Run
bun run cloudflareto start the tunnel and thenbun run startto start the Express server.- We're exposing a simple Express server via Cloudflare Tunnels to accept all incoming webhooks. We do not care about verifying it since this is a test app and we're triggering it manually.
- Run
bun run triggers- This will create a new file called
config/webhook_trigger.md. Copy just one line from it and pass an incorrect topic. This will force the CLI to give you a list of all current webhook topics. Pass it on toscripts/webhookTopics.jsas an array.
- This will create a new file called
- Run
bun run triggersagain- This will create an updated
config/webhook_trigger.mdfile.
- This will create an updated
- Copy the contents of
config/webhook_trigger.mdand paste it in your Terminal.- This will take a while to get started. This queues all webhooks that we start recieving from Shopify.
- Once the CLI is done, run
bun run createto generate JSDocs and TypeScript types.
- Express.js x MongoDB: Starter template built on React.js, Express.js and MongoDB.
- Next.js x Prisma ORM: Starter template built on Next.js and Prisma ORM.
- Polaris Playground: A Next.js and Polaris installation that mimics Shopify's Admin UI so you can build your UI offline, and drag it to the Next.js repo in one go.
If you want JSDocs/TS types, head over here