An open API service indexing awesome lists of open source software.

https://github.com/hesbon-osoro/github-graphql-server

Quickly convert GitHub REST API into GraphQL server.
https://github.com/hesbon-osoro/github-graphql-server

apollo-client github-api graphql nextjs typescript

Last synced: 7 months ago
JSON representation

Quickly convert GitHub REST API into GraphQL server.

Awesome Lists containing this project

README

          

# GitHub GraphQL Server

Quickly convert GitHub REST API into GraphQL server.

Let Client request exact data using GraphQL Apollo Server

## Technologies

- Apollo Server
- TypeScript
- Node
- Axios
- GraphQL
- REST API
- GitHub

## Setup

```code
# Clone the repo
git clones https://github.com/hesbon-osoro/github-graphql-server.git

# Navigate to directory and install packages
cd github-graphql-server && yarn

# Start the Apollo Server
yarn start
```

Open the GraphQL explorer at [`localhost:4000`](http://localhost:4000) or [`localhost:4000/api/graphql`](localhost:4000/api/graphql)

Start requesting the exact data that you need unlike the REST API that provides all the data.

Demo

![User request](assets/github-graphql-server.png)

![User response](assets/github-graphql-server1.png)

# REST User response

![rest res](assets/github-graphql-server4.png)

![Followers request](assets/github-graphql-server2.png)

![Followers response](assets/github-graphql-server3.png)

# REST Followers response

![followers rest](assets/github-graphql-server5.png)