theroka / hello-apollo-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-apollo-react

Small example project for React/Apollo/GraphQL. Uses "hello-apollo" as GraphQL API server. Just displays all book titles, requested with GraphQL.

Setup

Disclaimer: Typescript version is fixed to v3.5 (see package.json) since Typescript 3.6 does not has the GlobalFetch type which is used by apollo-client respectively apollo-link-http.

To install dependencies

yarn install

To build project

yarn gulp

Runs gulp default task through node_modules/.bin/gulp. Output is written to ./dist Serve these files with a webserver

Example

python -m http.server 8080

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 55.3%Language:JavaScript 24.6%Language:CSS 12.5%Language:HTML 7.6%