Generate related types, with some inconsistencies, in JSDocs and TypeScript types. Scripts auto generate so naming conventions could be way off.
- Create the
.env
file based on.env.example
TUNNEL_URL
: The tunnel URL, I prefer Cloudflare Tunnels.API_VERSION
: The API version. Example:2025-04
- Run
bun run cloudflare
to start the tunnel and thenbun run start
to 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.js
as an array.
- This will create a new file called
- Run
bun run triggers
again- This will create an updated
config/webhook_trigger.md
file.
- This will create an updated
- Copy the contents of
config/webhook_trigger.md
and 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 create
to 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