SvelteKit demo code for using Apollo Client to query a GraphQL API. The demo queries the GitHub GraphQL API to pull metadata on your public repos.
See the Use Apollo Client with SvelteKit for more on how to set this site up. The demo site is live on Render at sveltekit-graphql-github.rodneylab.com
Please drop questions into a comment at the bottom of the post page.
If you're seeing this, you've probably already done this step. Congrats!
git clone https://github.com/rodneylab/sveltekit-graphql-github.git
cd sveltekit-graphql-github
pnpm install # or npm install
pnpm run dev
pnpm run build
You can preview the built app with
pnpm run preview
, regardless of whether you installed an adapter. This should not be used to serve your app in production.
Feel free to jump into the Rodney Lab matrix chat room.