darde / github-graphql-pagination

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github GraphQL API Navigation

This project is an example of how to fetch repositories on Github using the GraphQL API with React. The project also provides an example of how to create a simple pagination feature using github cursors.

Constraints

To run this project locally you need to create your own .env file and pass the following environment variables:

VITE_GITHUB_ACCESS_TOKEN=<YOUR PERSONAL GITHUB ACCESS TOKEN>
VITE_GRAPHQL_ENDPOINT=https://api.github.com/graphql

Running

npm install && npm run dev

About


Languages

Language:TypeScript 90.1%Language:JavaScript 4.1%Language:CSS 3.5%Language:HTML 2.3%