levijackson / react-graphql

GitHub repo search based on the LinkedIn Learning series "Building a GraphQL Project with React.js" by Ray Villalobos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React GitHub GraphQL Search

This project was based on Building a GraphQL Project with React.js by Ray Villalobos.

Key differences:

  • Converted to TypeScript
  • Added debouncing to ensure we don't fire off too many requests
  • Added db.js.example to make setup easier
  • Consolidated a bunch of the search configuration options into a single state variable to pass around/validate

Setup

  1. Generate a personal access token to be able to make API requests to Github's GraphQL.

Permissions should be read-only:

  • repo (all of them)
  • user (all of them)
  1. Copy db.js.example to ./src/config/db.ts
cp ./db.js.example ./src/config/db.ts
  1. Adjust ./src/db.js to use your auth token where it has the placeholder <github_auth_token>

  2. Start it up

npm start

About

GitHub repo search based on the LinkedIn Learning series "Building a GraphQL Project with React.js" by Ray Villalobos.

License:MIT License


Languages

Language:TypeScript 96.2%Language:HTML 2.7%Language:SCSS 1.0%