Rails api boilerplate
Ruby on Rails API boilerplate
- [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.
Rails API Boilerplate

How to Works?
mermaidflowchart 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:
bashbundle install -
Create database, migrate tables and run the seed data:
bashrails db:create rails db:migrate rails db:seed -
If you are setting up again, when you already have previous databases:
bashrails db:resetresetis equivalent ofrails db:drop & rails db:setup. -
Run the server
bash./bin/dev
Contributors
Showing top 2 contributors by commit count.
This article is auto-generated from shftco/rails-api-boilerplate via the GitHub API.Last fetched: 6/28/2026
