kemal-graphql-example

Exploring graphql-crystal with kemal & graphiql

kemal-graphql

Coupling of kemal, grapqhiql and graphql-crystal.

Installation

Clone the git repository, enter the repository directory and run :

shards

to install all the dependencies.

Usage

build the project with

crystal build --release src/kemal-graphql.cr

and start the server with

./kemal-graphql

or run it directly with (use the release flag to see the best performance)

crystal run [--release] src/kemal-graphql.cr

now you can open up a browser and go to http://localhost:3000/index.html to explore the graphql schema.

Development

run specs with

KEMAL_ENV=test crystal spec

Contributing

  1. Fork it ( https://github.com/ziprandom/kemal-graphql/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

kemal-graphql-example

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 3
  • about 6 years ago
  • October 11, 2018
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 00:24:20 GMT

Languages