I have a basic react app built with create-react-app and hosted on GitHub Pages. The purpose of the app will be to track a user’s commits, PRs, etc as a sort of “scoreboard”: https://github.com/amartincastro/commit-counter
Eventually this app will be served on a wifi-connected Raspberry Pi & display on my desk.
I’d like to send requests to the GitHub GraphQL API to deliver this data, and I’ve already written the query below.
I’ve created the private key to access the API, and I’ve found some curl requests that you can use to submit the query, but I am not sure where to include a curl request in my application. Do I need to use some 3rd party library like Axios or https://www.npmjs.com/package/react-http-request?