Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mairagalvao/graphql_queries
https://github.com/mairagalvao/graphql_queries
graphql javascript react
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mairagalvao/graphql_queries
- Owner: MairaGalvao
- License: mit
- Created: 2021-11-22T20:42:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-23T12:39:40.000Z (about 3 years ago)
- Last Synced: 2024-11-08T02:16:01.412Z (2 months ago)
- Topics: graphql, javascript, react
- Language: JavaScript
- Homepage:
- Size: 568 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)# graphQL-react
# graphQL-react
# graphQL-project