Skip to content

innovixx/graphql-client-boilerplate

Repository files navigation

GraphQL Client Boilerplate

This is a basic structure for building clients to connect to GraphQL servers. It provides a starting point for developers to build their own GraphQL clients using popular libraries like Apollo and React.

Features

  • Uses Apollo Client to interact with GraphQL servers
  • Includes React Hooks for making GraphQL requests in React components
  • Uses GraphQL Code Generator to generate TypeScript types for GraphQL operations
  • Provides a basic folder structure for organizing files

Getting Started

  1. Clone the repository:

    git clone git@github.com:innovixx/graphql-client-boilerplate.git
  2. Install the dependencies:

    pnpm install
  3. Start the development server:

    pnpm dev
  4. Generate TypeScript types for GraphQL operations:

    pnpm codegen
  5. Build for production:

    pnpm build

Considerations

  • Updating ESLint to version >= 10 causes incompatibility issues with eslint-react-plugin used under-the-hood by @innovixx/eslint-config. Version locked to the latest stable and compatible version.

About

This GraphQL client boilerplate provides a basic structure for building clients to connect to graphql servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors