Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sangria-graphql/sangria-playground

An example of GraphQL server written with Play and sangria
https://github.com/sangria-graphql/sangria-playground

Last synced: about 1 month ago
JSON representation

An example of GraphQL server written with Play and sangria

Awesome Lists containing this project

README

        

## Sangria Playground

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

This is an example of a [GraphQL](https://facebook.github.io/graphql) server written with [Play framework](https://www.playframework.com) and
[Sangria](https://github.com/sangria-graphql/sangria).

If you'd like to explore a GraphQL server built with Sangria you may do so here: [Sangria Playground](https://sangria-play-example.herokuapp.com). 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.

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:

```bash
$ git clone https://github.com/sangria-graphql/sangria-playground.git
$ cd sangria-playground
$ sbt run
```

Now you are ready to point your browser to [http://localhost:9000](http://localhost:9000).
The only prerequisites are [SBT](http://www.scala-sbt.org/download.html) and [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).