This project aims to provide the minimal setup to get started with a GraphQL on Rails API.
- Clone this repo:
git clone https://github.com/RyanCCollins/rails-graphql-api
- Run:
docker-compose build
docker-compose up
docker-compose run app rake db:setup
- Browse to http://localhost:3000/graphiql
- Install Rails 5
- Clone this repo:
git clone https://github.com/RyanCCollins/rails-graphql-api
- Install the dependencies:
bundle install
- Setup the database:
rails db:setup
(pg must be running on your machine) - Run the web server:
rails s
- Browse to http://localhost:3000/graphiql
rake graphql:schema
Generate the GraphQLschema.json
file
Below are several examples of apps that use GraphQL on Rails.
- The Agency CMS (Work in Progress)
- RyanCollins.io
- Udacity Alumni API