kemal-graphql

Version, currently master branch1 version
  • master branchlatestOct 24, 2019

github.com/ziprandom/kemal-graphql-example

Exploring graphql-crystal with kemal & graphiql

35 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  kemal-graphql:
    github: ziprandom/kemal-graphql-example
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
ziprandom
Target
  • kemal-graphql from src/kemal-graphql.cr

Dependencies

Runtime Dependencies

  • kemal*github: kemalcr/kemal, branch: master
  • spec-kemal*github: kemalcr/spec-kemal, branch: master
  • graphql-crystal*github: ziprandom/graphql-crystal, branch: master

README

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