/sangria-swapi

Example GRAPHQL server written with Play framework, MacWire and Sangria

Primary LanguageJavaScriptOtherNOASSERTION

Sangria swapi

This is an example of a GraphQL server written with Play framework and Sangria. It also serves as a playground. On the right hand side you can see a textual representation of the GraphQL schema which is implemented on the server and that you can query here. On the left hand side you can execute a GraphQL queries and see the results of its execution.

It's available here:

http://try.sangria-graphql.org

This project sangria-swapi is based on https://github.com/sangria-graphql/sangria-playground.git Uses

  • Sangria
  • Circe
  • Macwire
  • Test cases for controllers

This is just a small demonstration. It really gets interesting when you start to play with the schema on the server side. Fortunately it's pretty easy to do. Since it's a simple Play application, all it takes to start playground locally and start playing with the schema is this:

$ git clone https://github.com/gmkumar2005/sangria-swapi.git
$ cd sangria-swapi
$ sbt run

Now you are ready to point your browser to http://localhost:9000. The only prerequisites are SBT and Java 8.