GitPedia

Rails api boilerplate

Ruby on Rails API boilerplate

From shftco·Updated November 23, 2025·View on GitHub·

- [Swagger](docs/SWAGGER.md) - [Service generator](docs/SERVICE.md) - [Contract generator](docs/CONTRACT.md) - [Search & Filter & Sort](docs/RANSACK.md) The project is written primarily in Ruby, first published in 2022. Key topics include: boilerplate, devise-auth, doorkeeper, rails, rails-api.

build & test & quality
Ruby Style Guide
Ruby Version
Rails Version
Swagger documentation

Rails API Boilerplate

cover

How to Works?

mermaid
flowchart TD R[Request] --> C[Application Controller] C --> O[Application Operation] O -- Validate Params --> AC[Application Contract] O -- Application Contract returned success?--> S[Application Service] AC -- Validation success? --> O[Application Operation] AC -- Validation failed? --> E[Contract Errors] E --> RE S -- Process successful? --> RS[Resource] S -- Process failed? --> OE[Resource Errors] OE --> RE[Response] RS --> RE RE -- Returns --> C

Documentations

Installation

Prerequisites

Installation

  • Install GEM dependencies:

    bash
    bundle install
  • Create database, migrate tables and run the seed data:

    bash
    rails db:create rails db:migrate rails db:seed
  • If you are setting up again, when you already have previous databases:

    bash
    rails db:reset

    reset is equivalent of rails db:drop & rails db:setup.

  • Run the server

    bash
    ./bin/dev

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from shftco/rails-api-boilerplate via the GitHub API.Last fetched: 6/28/2026