Search across GitHub via its GraphQL API.
- For now only
REPOSITORY,ISSUEsearch types works.
-
Make sure you installed the latest version of
nodeandnpm. -
Clone the repo:
git clone https://github.com/8HadiG/github-graphql.git
-
Change directory to the repo:
cd github-graphql -
Install dependencies:
npm install
-
Optional: If you are using
VS Code, you can installGraphQL: Language Feature Supportextension. -
Rename the
.env.examplefile to.env. -
Create a github personal access token (see PAT).
-
Write your GitHub access token after
GITHUB_TOKEN=inside the.envfile.
-
Feel free to change values from
input/var-api.jsonandinput/var-filter.jsonfiles. -
Open the repository in your terminal, then run:
npm start
-
See results from output/results.json.