osocron / graphql-akka-http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of GraphQL with Scala

An example Scala GraphQL server written with akka-http and sangria.

Running the example

sbt ~reStart

SBT will automatically compile and restart the server whenever the source code changes.

After the server is started you can run queries interactively using GraphiQL by opening http://localhost:8080 in a browser.

Database Configuration

This example uses an in-memory H2 SQL database. The schema and example data will be re-created every time server starts.

If you would like to change the database configuration or use a different database, then please update src/main/resources/application.conf.

master branch has the newest version of code, but if you want to repeat and test what I did during presentation there are state1 to state5 branches for this purpose, additionally there are patch files that would help observe what changed during every stage

About


Languages

Language:Scala 75.1%Language:HTML 24.9%