GraphiqlRails
Integrates Graphiql with Rails.
Installation and Usage
Add this line to your application's Gemfile:
gem "graphiql_rails"
And then execute:
$ bundle install
Then in your routes.rb
:
mount GraphiqlRails::Engine => "/graphiql_rails", defaults: { endpoint: "/path_to_graphql_endpoint" }
Then you can visit /graphiql_rails
(or wherever you mounted the engine at) enjoy the full power of Graphiql.
Contributing
- Fork it
- Clone it locally
-
cd
into the project root bundle install
appraisal install
- Run the specs with
appraisal rake
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request