references/bun-catalog/README.md
You can test v3 tasks from inside the app in this project. It's designed to be used for testing features and functionality of the v3 SDK.
Create a v3 project in the UI of the webapp, you should now be able to select it from the dropdown.
In Postgres go to the "Projects" table and for the project you create change the externalRef to yubjwjsfkxnylobaqvqz.
This is so the trigger.config.ts file inside the hello-world doesn't keep getting changed by people accidentally pushing this.
pnpm run dev --filter webapp
pnpm run build --filter trigger.dev
cd references/hello-world
pnpm exec trigger login -a http://localhost:3030
If this fails because you already are logged in you can create a new profile:
pnpm exec trigger login -a http://localhost:3030 --profile local
Note: if you use a profile then you'll need to append --profile local to all commands, like dev.
pnpm exec trigger dev
You should see the v3 dev command spitting out messages, including that it's started a background worker.
Go to the webapp now and inside your project you should see some tasks on the "Tasks" page.
Go to the "Test" page in the sidebar and select a task. Then enter a payload and click "Run test". You can tell what the payloads should be by looking at the relevant task file inside the /references/hello-world/src/trigger folder. Many of them accept an empty payload.