This repository contains a Rust project that utilizes GraphQL to interact with GitHub issues. It showcases how to perform various operations such as querying and mutating GitHub issues using Rust as the programming language and GraphQL for communication with the GitHub API.
MIT License
This repository contains a Rust project that utilizes GraphQL to interact with GitHub issues. It showcases how to perform various operations such as querying and mutating GitHub issues using Rust as the programming language and GraphQL for communication with the GitHub API.
The project is structured to include a GraphQL server setup with Rocket, a web framework for Rust, and async-graphql
, a GraphQL server library for Rust. The server allows querying GitHub issues and performing mutations like creating, updating, and deleting issues.
Key components of the project include:
github_issue/src/schema/
, these files define the GraphQL schema for GitHub issues, including types and mutations.github_issue/src/handler/
, these handlers process GraphQL queries and mutations, interacting with the GitHub API.github_issue/src/bin/main.rs
file sets up the Rocket server and routes for handling GraphQL queries and mutations.This project serves as an example of how Rust and GraphQL can be used together to build a backend service that interacts with GitHub issues, demonstrating the power and flexibility of Rust in web development and the efficiency of GraphQL for API communication.
Before running the project, ensure you have the following prerequisites:
To get started with the project, follow these steps:
Clone the repository to your local machine using Git:
git clone https://github.com/AkshitVadodariya1201/GitHub-GraphQL-APIs-with-Rust
Navigate to the project directory:
Create a .env
file in the project root directory and add your GitHub personal access token:
GITHUB_TOKEN=your_personal_access_token_here
Build and run the project using Cargo:
cargo run
Once the server is running, you can access the GraphQL playground at http://localhost:8000
to test queries and mutations.
Use the GraphQL playground to interact with GitHub issues, query issue data, create new issues, update existing issues, and delete issues.
Explore the project structure, code, and GraphQL schema definitions to understand how the project is implemented and how Rust and GraphQL are used together.
Experiment with different queries and mutations to interact with GitHub issues and see the results in real-time.
Modify the project to suit your requirements, add new features, or integrate additional functionality using Rust and GraphQL.
Enjoy exploring the world of Rust and GraphQL with GitHub issues!
async-graphql
library, a GraphQL server library for Rust, with documentation, guides, and examples.rustup
, the Rust toolchain installer, with installation instructions and guides.This project is licensed under the MIT License. See the LICENSE
file for more details.
Happy coding!🦀🚀