RyanCCollins / rails-graphql-api

A rails graphql api starter project

Repository from Github https://github.comRyanCCollins/rails-graphql-apiRepository from Github https://github.comRyanCCollins/rails-graphql-api

rails-graphql-api

This project aims to provide the minimal setup to get started with a GraphQL on Rails API.

Installation

With Docker

  1. Clone this repo: git clone https://github.com/RyanCCollins/rails-graphql-api
  2. Run: docker-compose build docker-compose up docker-compose run app rake db:setup
  3. Browse to http://localhost:3000/graphiql

Without Docker

  1. Install Rails 5
  2. Clone this repo: git clone https://github.com/RyanCCollins/rails-graphql-api
  3. Install the dependencies: bundle install
  4. Setup the database: rails db:setup (pg must be running on your machine)
  5. Run the web server: rails s
  6. Browse to http://localhost:3000/graphiql

Tasks

  • rake graphql:schema Generate the GraphQL schema.json file

Examples

Below are several examples of apps that use GraphQL on Rails.

About

A rails graphql api starter project


Languages

Language:Ruby 100.0%