svelte-houdini-dojo Svelte Themes

Svelte Houdini Dojo

Fast Fail

pnpm i to install deps.

  • Run pnpm deploy:local on Dojo repo
  • Wait until port:8080 is available ^^
  • Run pnpm dev
  • Goto localhost:5173 & Open dev console in browser
  • See Models loaded from Torri 👍
  • Enter in form & submit see response from /api 👍
  • Execute Torri Tx and see subscription payload update in web app. 👍

^^ find relevant FE code in +page.svelte

See graphql onload query in +page.gql


IF subscription fails - it's because I forgot to commit to ws endpoint ☎️

Extend API

Use the routes/api/+server.ts to update the POST method and trigger a transaction in Torri (from this server)

(☞゚ヮ゚)☞ This is your Job 👀

Top categories

Loading Svelte Themes