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

https://github.com/the-road-to-graphql/node-apollo-boost-github-graphql-api

A standalone GraphQL application that uses Apollo Client for consuming the GitHub GraphQL API
https://github.com/the-road-to-graphql/node-apollo-boost-github-graphql-api

apollo apollo-boost apollo-client apollographql graphql graphql-client graphql-js

Last synced: 2 months ago
JSON representation

A standalone GraphQL application that uses Apollo Client for consuming the GitHub GraphQL API

Awesome Lists containing this project

README

        

# Apollo Client consuming GitHub's GraphQL API

[![Build Status](https://travis-ci.org/the-road-to-graphql/node-apollo-boost-github-graphql-api.svg?branch=master)](https://travis-ci.org/the-road-to-graphql/node-apollo-boost-github-graphql-api) [![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/) [![Greenkeeper badge](https://badges.greenkeeper.io/the-road-to-graphql/node-apollo-boost-github-graphql-api.svg)](https://greenkeeper.io/)

A standalone version of a Apollo Client using GitHub's GraphQL API for performing queries and mutations. [Read more about it here](https://www.robinwieruch.de/react-graphql-apollo-tutorial).

## Features

* Node.js standalone application for the command line
* Apollo Client with [Apollo Boost](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-boost) with GitHub GraphQL API
* Queries and Mutations

## Installation

* `git clone [email protected]:the-road-to-graphql/node-apollo-boost-github-graphql-api.git`
* `cd node-apollo-boost-github-graphql-api`
* add your own [GitHub personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) in a .env file in your root folder
* GITHUB_PERSONAL_ACCESS_TOKEN=xxxXXX
* `npm install`
* `npm start`

## Contributing

* Please install [Prettier integration](https://prettier.io/docs/en/editors.html) to your editor and turn on **format on save** option.
* [Prettier For Atom](https://github.com/prettier/prettier-atom)
* [Prettier for VSCode](https://github.com/prettier/prettier-vscode)
* [Prettier for EMACS](https://github.com/prettier/prettier-emacs)
* [Prettier for VIM](https://prettier.io/docs/en/vim.html)
* [others...](https://prettier.io/docs/en/editors.html)

## Want to learn more about React + GraphQL + Apollo?

* Don't miss [upcoming Tutorials and Courses](https://www.getrevue.co/profile/rwieruch)
* Check out current [React Courses](https://roadtoreact.com)