RailsStarter

rails-starter — Rails Starter Template

By roonyx-tech

Rails Starter Kit is a starter template for Ruby on Rails projects, preconfigured with docker-compose, Sidekiq, CORS, RSpec testing, and RuboCop, so you can start a new project right after cloning.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

1 previews
Desktop homepage
Desktop captureTop of page

Actual screenshot captured by the server browser.

One original preview is available. Open the full image to inspect the design.

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-03View source

What stands out

A quick read of the recorded project description.

01

Preconfigured docker-compose setup with common commands such as make setup, migrate, rollback, bundle, reset, and console

02

Integrates Sidekiq background jobs and rack-cors cross-origin support

03

Built-in RSpec testing stack, including factory_bot_rails, faker, shoulda-matchers, database_cleaner, and simplecov coverage reports

04

Integrates RuboCop static checks and rswag API documentation generation

05

Provides an ApplicationService base class for writing single-responsibility service objects

06

Uses byebug for debugging, and can attach to a running container via docker attach

Template Details

Rails Starter Kit is maintained by roonyx-tech and is positioned as a starting point for new Rails projects. It gathers features and configurations common in the team's existing Rails projects into a single repository. The workflow is to clone the project, run the rename command, and point git remote to your own repository, rather than building from scratch.

The template comes with docker-compose startup configuration, Sidekiq background jobs, rack-cors cross-origin support, and development and testing dependencies including factory_bot_rails, faker, active_model_serializers, byebug, bullet, rspec, rswag, database_cleaner, shoulda-matchers, simplecov, rubocop, and annotate. The README describes how to run migrations, rollbacks, bundle, database resets, enter the rails console, and run custom commands through make targets, and also explains the usage of rake ci, rspec, rubocop, rake docs:generate, and coverage reports.

Before use, Ruby 3.0.2 or later is required, along with Docker and docker-compose. The template itself contains no business logic; the Application Service only provides a PORO base class example. The demo site roonyx.tech is the maintainer's official website, not a running example of this template. The repository uses the MIT license, and the code may be used, modified, commercialized, and distributed for free, but third-party assets such as demo images, fonts, and icons, as well as external services such as domains, hosting, and databases, require separate verification of licensing and costs.

RailsStarter

Is it right for your project?

Use Cases

  • Quickly starting a new Ruby on Rails project while reusing existing Docker and testing configurations
  • Teams wanting to standardize background jobs, CORS, serialization, and code checking for Rails projects
  • Setting up an RSpec testing system for a Rails project and generating API documentation
  • Developing Rails applications in a containerized environment and completing common operational tasks through make commands

Suitable For

  • Developers familiar with Ruby on Rails and preparing to start a new project
  • Teams using Docker and docker-compose as their local development environment
  • Rails projects that need preconfigured common components such as RSpec, RuboCop, and Sidekiq

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Requires Ruby 3.0.2 or later, and Docker and docker-compose installed

  2. 2

    After cloning the repository, run bundle && rails g rename:into YourAppName to rename the application, then point git remote to your own repository

  3. 3

    Build with make setup, start with docker-compose up, and stop with docker-compose down

  4. 4

    Database migration, rollback, reset, and rails console are run via make migrate, make rollback, make reset, and make console respectively

  5. 5

    The code uses the MIT license; when distributing, retain the copyright and license notice; third-party assets and external services require separate verification of licensing and costs

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version in the public repository under the MIT license; the free scope is the code of that version and does not mean external services or third-party assets are free.

Must comply with when using

  • The code of this version may be used, modified, commercialized, and distributed for free.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked under their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis

Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
Partly documented · 65 / 100
Technologies
Rails
Website type
Starter
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2022-06-16
Screenshot last checked
2026-10-03

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Rails as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: [email protected] · 2026-10-04

Inspect the recorded source material

SHA-256: bdf8a1131a40ee71d0059146100d06cf3c6ec28b858612918723c1f3e80f388b

2026-10-03T15:29:02.673Z

Source file / repository
# About

Rails Starter Kit was created as a way to save time when starting a new Rails project. 
We have taken the most common functionality and configuration in our existing Rails projects, and put those into this project. 
Simply clone this project, and change the git remote to your remote repository. 
Rails Starter Kit is ready to start with docker-compose.

## Table of contents

* [Out-of-the-box functionality](#out-of-the-box-functionality)
* [Getting started](#getting-started)
    * [Init](#init)
    * [Docker build](#docker-build)
    * [Run app](#run-app)
    * [Down app](#down-app)
* [Docker](#docker)
    * [migrate](#migrate)
    * [rollback](#rollback)
    * [bundle](#bundle)
    * [Reset database](#reset-database)
    * [Rails console](#rails-console)
    * [Run custom command](#run-custom-command)
* [Tests, Lints, Docs](#tests-lints-docs)
    * [Running tests](#running-tests)
    * [JSON context in rspec](#json-context-in-rspec)
    * [Running lints](#running-lints)
    * [Generate docs](#generate-docs)
    * [Coverage report](#coverage-report)
* [Additional functionality](#additional-functionality)
  * [Application Service](#application-service)
  * [Debug](#debug)
* [License](#license)

## Out-of-the-box functionality

- [docker-compose](https://docs.docker.com/compose/) configuration for start project
- [Sidekiq](https://github.com/mperham/sidekiq) configuration for background processing
- [rack-cors](https://github.com/cyu/rack-cors) provides support for Cross-Origin Resource Sharing (CORS)
- [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails) for fixtures
- [faker](https://github.com/faker-ruby/faker) for generates fake data
- [active_model_serializers](https://github.com/rails-api/active_model_serializers/tree/0-10-stable) for serialize json
- [byebug](https://github.com/deivid-rodriguez/byebug) simple to use and feature rich debugger for Ruby
- [bullet](https://github.com/flyerhzm/bullet) for detect N+1 queries
- [rspec](https://github.com/rspec/rspec-rails) testing framework
- [rswag](https://github.com/rswag/rswag) for generate api docs
- [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) containing strategies for cleaning your database
- [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) provides RSpec-compatible one-liners to test common Rails functionality
- [simplecov](https://github.com/simplecov-ruby/simplecov) is a code coverage analysis tool for Ruby
- [rubocop](https://github.com/rubocop/rubocop) static code analyzer (a.k.a. linter)
- [annotate](https://github.com/ctran/annotate_models) for schema comment

## Getting started

Requirements:

- Ruby >= 3.0.2

### Init

1. Clone Rails Starter Kit
2. Execute bundle && rails g rename:into YourAppName
3. Go to ./../YourAppName
4. Create a new repository on GitHub, BitBucket, or your own server 
5. Change the git remote to your new repository
6. Push changes

### Docker build
```
make setup
```

### Run app
```
docker-compose up
```

### Down app
```
docker-compose down
```

## Docker

### Migrate
```
make migrate
```

### Rollback
```
make rollback
```

### Bundle
```
make bundle
```

### Reset database
```
make reset
```

### rails console
```
make console
```

### Run custom command
```
docker-compose run --rm rails bundle exec <your_custom_command>
```

## Tests, Lints, Docs

### Ci task
- To run the CI task run:
```
rake ci
```

### Running tests

- To run the test suite simply run:
```
rspec
```

### JSON context in rspec
- Setup json helper in your spec file
```ruby
include_context :json
```
- And easy use json in expect
```ruby
expect(json).not_to eq []
```

### Running lints

- To run rubocop lint
```
rubocop
```

- Auto correct rubocop lint
```
rubocop -a
```

### Generate docs

```
rake docs:generate
```

### Coverage report

After call `rspec` will be in the `./coverage` folder

## Additional functionality

### Application Service

Service objects are Plain Old Ruby Objects (PORO) that are designed to execute one single action in your domain logic and do it well.

- Example service object
```ruby
class ExampleService < ApplicationService
  attr_reader :name
  
  def initialize(name)
    @name = name
  end
  
  def call
    puts "Hello #{name}"
  end
end
```
- For call object
```ruby
ExampleService.call('name')
```

### Debug
Setup `byebug` in your code, then attach to running container:
```
docker attach [rails_container_id]
```
- `Ctrl+D` to the next point
- `continue` to finish debug
- `Ctrl+P` then `Ctrl+Q` to detach container


## License

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/roonyx-tech/rails-starter/blob/master/LICENSE)
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.