sdevalapurkar / graphql-goodreads

πŸ“– Demo graphql service for serving up data about your favourite books. Built for a lunch and learn presentation

Home Page:https://sd-graphql-goodreads.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-goodreads

Demo GraphQL service for serving up data about your favourite books. Includes basic types, queries, a resolver, and a mutation to get book data and like a book for a given user. Built for a lunch and learn presentation at NTT Data Services. Additional projects include:

  • An Apollo GraphQL service which consumes an API to show how GraphQL and RESTful services can live in harmony. The Apollo server is available at https://sd-graphql-goodreads.herokuapp.com/.
  • A Java Springboot implementation of the GraphQL goodreads service.

Queries

Screen Shot 2020-05-26 at 4 21 41 PM

Screen Shot 2020-05-26 at 4 28 43 PM

Mutations

Screen Shot 2020-05-27 at 11 25 57 AM

Screen Shot 2020-05-27 at 11 28 15 AM

Schema

Screen Shot 2020-05-26 at 4 29 00 PM

Running Locally

In order to run the service(s) locally:

  1. Clone the repository
git clone https://github.com/sdevalapurkar/graphql-goodreads.git
  1. Install dependencies
npm install
  1. Start up the server of your choice

To run the base server:

npm run graphql

To run the Apollo server:

npm run apollo

To run the Apollo server with a full fake REST API:

npm start

To run the Java Springboot server:

cd java-springboot
gradle bootRun

Additional Resources

Here is a small list of some other useful tools and resources for learning that I believe could be beneficial.

GraphQL Playground Chrome Extension

https://chrome.google.com/webstore/detail/graphql-playground-for-ch/kjhjcgclphafojaeeickcokfbhlegecd?hl=en

GraphQL Java and Springboot

https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/

Learn Basic GraphQL and Apollo

https://graphql.org/learn/queries/ https://www.apollographql.com/docs/tutorial/introduction/

Apollo Engine

https://engine.apollographql.com/login

About

πŸ“– Demo graphql service for serving up data about your favourite books. Built for a lunch and learn presentation

https://sd-graphql-goodreads.herokuapp.com


Languages

Language:JavaScript 59.8%Language:Java 40.2%