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

https://github.com/sysgears/scala-graphql-api-example


https://github.com/sysgears/scala-graphql-api-example

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/PLGrudina/GraphQL_API_example.svg?branch=master)](https://travis-ci.org/PLGrudina/GraphQL_API_example)

This is a demo project showing how to build a GraphQL API on the basis of a Play2 framework using Scala and Sangria.

**How to start**

Run an application:

`sbt run`

To start the application, you must be installed locally Java and SBT.
The application uses H2 database in-memory. Database initialization is provided by Play evolutions. After launch, the application will be available at `localhost:9000`. When you first start you will see a message about the need to execute the sql script. Click `Apply this script now!`

**Sources**

https://graphql.org/

https://www.playframework.com/documentation/2.6.x/ScalaHome

https://sangria-graphql.org/learn/