blog-typescript-graphql/README.md

24 lines
698 B
Markdown
Raw Permalink Normal View History

2021-12-31 09:39:03 +01:00
# A sane and efficient guide for consuming GraphQL endpoints in Typescript
2021-12-31 10:18:12 +01:00
This is the companion repo to the [blog post](https://nicco.io/blog/a-sane-and-efficient-guide-for-consuming-graphql-endpoints-in-typescript) about GraphQL with Typescript.
2021-12-31 09:39:03 +01:00
This is skeleton [svelte kit](https://kit.svelte.dev/) app. The relevant files are:
2021-12-31 10:18:12 +01:00
- `.graphqlrc.yml` Editor config
- `codegen.yaml` Generator config
- `src/lib/gql` Folder where I've put the GraphQL stuff
- `src/routes/index.svelte` example usage of the generated SDK
## Demo
You can check a running demo here: https://blog-typescript-graphql.vercel.app
2021-12-31 09:39:03 +01:00
## Running
```bash
pnpm i
pnpm run generate # Generate GraphQL stuff
pnpm run dev
```