Believe it! This repository is like a Rasengan of code that demonstrates how to use the GitHub GraphQL API with Flutter, inspired by the world of Naruto.
To embark on this shinobi journey, you'll need to gather the following jutsus (dependencies):
- Flutter
- graphql_flutter
Once you have acquired these jutsus, you can perform the forbidden jutsu by following these steps:
-
Clone the repository like a true shinobi:
git clone https://github.com/devjenildgohel/github_graphql.git
-
Navigate to the repository directory like a stealthy ninja:
cd github_graphql
-
Open the
lib/utils/api_utils.dart
file and infuse your GitHub personal access token, your chakra, into theGITHUB_TOKEN
variable. Make sure your token possesses the Sharingan-like permissions to access the GitHub API. -
Perform the hand seals by running the following command to gather your chakra (install project dependencies):
flutter pub get
-
Activate your Sage Mode and execute the following command to start the application:
flutter run
Harnessing the power of GraphQL, you can now wield mighty jutsus to interact with the GitHub API. Once you have channeled your GitHub token in the api_utils.dart
file, the application will utilize that energy for authentication.
You can now embark on epic missions and query the API using the available jutsus in the project. For instance, to summon a list of all your repositories, perform the following jutsu:
query {
viewer {
repositories(first: 100) {
nodes {
name
}
}
}
}
Remember, wield your code jutsus responsibly and refer to the GitHub API documentation to avoid any ninja clashes.
Unite with fellow shinobi! Contributions are as welcome as Jiraiya's stories. If you encounter any bugs or have any suggestions, open an issue or summon a pull request.
This project follows the Ninja Way and is licensed under the MIT License.
The project harnesses the power of graphql_flutter jutsu to interact with the GitHub API.
For more details, visit the GitHub repository and embrace the spirit of the Hidden Leaf Village.