https://github.com/sysgears/scala-graphql-api-example
https://github.com/sysgears/scala-graphql-api-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sysgears/scala-graphql-api-example
- Owner: sysgears
- License: mit
- Created: 2019-02-27T15:44:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T15:51:28.000Z (over 7 years ago)
- Last Synced: 2025-03-28T23:22:25.963Z (about 1 year ago)
- Language: Scala
- Size: 92.8 KB
- Stars: 16
- Watchers: 14
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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/