Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/katopz/react-apollo-graphql-github-example
Apollo React example for Github GraphQL API
https://github.com/katopz/react-apollo-graphql-github-example
apollo github-graphql react stargazer
Last synced: about 1 month ago
JSON representation
Apollo React example for Github GraphQL API
- Host: GitHub
- URL: https://github.com/katopz/react-apollo-graphql-github-example
- Owner: katopz
- License: mit
- Archived: true
- Created: 2016-09-17T15:15:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T00:55:27.000Z (about 2 years ago)
- Last Synced: 2024-08-01T22:51:35.744Z (4 months ago)
- Topics: apollo, github-graphql, react, stargazer
- Language: JavaScript
- Homepage: https://medium.com/@katopz/github-graphql-api-react-example-eace824d7b61
- Size: 1.04 MB
- Stars: 114
- Watchers: 3
- Forks: 26
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-graphql - Apollo React example for Github GraphQL API - Usage Examples Apollo React for Github GraphQL API with create-react-app (Examples / JavaScript Examples)
- awesome-graphql - Apollo React example for Github GraphQL API - Usage Examples Apollo React for Github GraphQL API with create-react-app. (Implementations / JavaScript/TypeScript)
README
# react-apollo-graphql-github-example
Apollo React example for Github GraphQL API with [create-react-app](https://github.com/facebookincubator/create-react-app)![](ss.png)
## Prerequisites
- git
- nodejs
- Github app and credential [GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET](https://developer.github.com/v3/guides/basics-of-authentication/#accepting-user-authorization)
- [Integrations Early Access](https://developer.github.com/changes/2016-09-14-Integrations-Early-Access/)## Install
```sh
git clone https://github.com/katopz/react-apollo-graphql-github-example.git
cd react-apollo-graphql-github-example
npm i
```## Config
- Copy `config.default.js` into a file called `config.js`, and replace `xxx` with your username and password
- Replace `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` with your credential.## Develop
```sh
npm start
```
> For `VSCode` you can press `F5` to run :)## More examples
- [Search for top ten stargazers](https://gist.github.com/katopz/2729ace879e3576e8da9292cc8433673)
- [Search for top ten stargazers via query](https://gist.github.com/katopz/7441f90696b3586f8ec2d673b88dc4be)## Referer
- [create-react-app](https://github.com/facebookincubator/create-react-app)
- [The new GitHub GraphQL API](https://medium.com/apollo-stack/the-new-github-graphql-api-811b005d1b6e#.lcm2mmtn2)
- [Github GraphQL API React Example](https://medium.com/@katopz/github-graphql-api-react-example-eace824d7b61#.fil01xjsl)
- [🔍 How to search with Github GraphQL](https://medium.com/@katopz/how-to-search-with-github-graphql-e6c142dc61ed)