Sha256: 4cfd63210b8055e992c564b6865e72d4ba06833b3744891840b9dd29bf8584c2

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

# GraphQL Voyager Rails

Easily mount [GraphQL Voyager](https://github.com/APIs-guru/graphql-voyager) on your rails app.

![image](https://user-images.githubusercontent.com/1266229/60472004-1cafe500-9c35-11e9-93c0-189af3a6aee7.png)

## Usage

Mount GraphQL Voyager in your `config/routes.rb`:

```ruby
mount Graphql::Voyager::Rails::Engine, at: "/graphql-voyager", graphql_path: "/graphql"
```

Precompile assets in your `config/application.rb`:
```ruby
config.assets.precompile += [
  'graphql/voyager/rails/application.css',
  'graphql/voyager/rails/application.js',
  'graphql/voyager/rails/voyager.js'
]
```

Now you should be able to access GraphQL Voyager at: `http://localhost:3000/graphql-voyager`.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'graphql-voyager-rails'
```

And then execute:
```bash
$ bundle
```

Or install it yourself as:
```bash
$ gem install graphql-voyager-rails
```

## Contributing
Pull requests are always welcome.

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Thanks

Gem originally based off on [GraphiQL Rails](https://github.com/rmosolgo/graphiql-rails) and of course [GraphQL Voyager](https://github.com/APIs-guru/graphql-voyager).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-voyager-rails-1.0.4 README.md
graphql-voyager-rails-1.0.3 README.md
graphql-voyager-rails-1.0.2 README.md
graphql-voyager-rails-1.0.1 README.md