Skip to content

alexkamil/graphql-akka-http

 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 75.1%
  • HTML 24.9%