Rails Graphql Api Boilerplate

screenshot of Rails Graphql Api Boilerplate

A boilerplate for Rails GraphQL API applications

Overview:

The Rails GraphQL API Boilerplate is a Ruby on Rails application that utilizes GraphQL as its query language. It is designed to provide a boilerplate codebase for creating GraphQL APIs with Rails. The main characteristics of this boilerplate include the use of Ruby 2.7.2+, Rails 6.1.1+, GraphQL 1.12.2+, and Puma as the web server. It also incorporates other gems such as dotenv-rails for environment variables, bullet for detecting N+1 issues, graphql-batch for batching queries, and JWT for token authentication.

Features:

  • Ruby 2.7.2+: Utilizes the latest version of Ruby.
  • Rails 6.1.1+: Built on top of the latest Rails framework.
  • GraphQL 1.12.2+: Implements the GraphQL query language in Ruby.
  • Puma: Uses the Puma web server for handling HTTP requests.
  • Test Framework: RSpec: Built with RSpec for writing unit tests.
  • Postgres & Redis: Utilizes Postgres and Redis databases.
  • Async Processor: Sidekiq: Incorporates Sidekiq for running background jobs.

Summary:

The Rails GraphQL API Boilerplate is a Ruby on Rails application that provides a boilerplate codebase for creating GraphQL APIs. It utilizes Ruby 2.7.2+, Rails 6.1.1+, and GraphQL 1.12.2+ to create a powerful and customizable API. With features such as Puma as the web server, RSpec for testing, and gems like dotenv-rails, bullet, graphql-batch, and JWT, this boilerplate provides a solid foundation for building scalable and performant GraphQL APIs. The installation process is straightforward and allows for easy customization and configuration.