Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rodneylab/sveltekit-graphql-github

Use Apollo Client with SvelteKit to Query a GraphQL API: we use the GitHub API to query our repos and learn a bit of SvelteKit along the way.
https://github.com/rodneylab/sveltekit-graphql-github

apollo apollo-client github github-api github-graphql-api graphql graphql-client pwa sass sveltekit sveltekit-example

Last synced: about 2 months ago
JSON representation

Use Apollo Client with SvelteKit to Query a GraphQL API: we use the GitHub API to query our repos and learn a bit of SvelteKit along the way.

Awesome Lists containing this project

README

        

Rodney Lab sveltekit-graphql-github Github banner



Rodney Lab logo


SvelteKit GraphQL Github

# sveltekit-graphql-github

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/rodneylab/sveltekit-graphql-github)

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](https://rodneylab.com/use-apollo-client-sveltekit/) for more on how to set this site up. The demo site is live on Render at [sveltekit-graphql-github.rodneylab.com](https://sveltekit-graphql-github.rodneylab.com/)

Please drop questions into a comment at the bottom of the post page.

## Building and previewing the site

If you're seeing this, you've probably already done this step. Congrats!

```bash
git clone https://github.com/rodneylab/sveltekit-graphql-github.git
cd sveltekit-graphql-github
pnpm install # or npm install
pnpm run dev
```

## Building

```bash
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](https://matrix.to/#/%23rodney:matrix.org).