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
- 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)
- Copy
db.js.example
to./src/config/db.ts
cp ./db.js.example ./src/config/db.ts
-
Adjust
./src/db.js
to use your auth token where it has the placeholder<github_auth_token>
-
Start it up
npm start