> ## Documentation Index
> Fetch the complete documentation index at: https://buttercms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ruby starter project

> Get up and running with Ruby and ButterCMS in under two minutes, with a starter that showcases Pages, Collections, and a Blog engine.

> [!NOTE]
>
> **One-Click Deploy**: Skip local setup and [deploy to Vercel instantly](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FButterCMS%2Frails-starter-buttercms\&env=BUTTER_CMS_API_KEY\&envDescription=Your%20ButterCMS%20API%20Token\&envLink=https%3A%2F%2Fbuttercms.com%2Fsettings%2F).

## Quick start

Make sure you have ruby version 3.1.0 installed. Otherwise, follow the official instructions on how to set up ruby on your machine. Then, clone repo and install dependencies:

```bash theme={null}
$ git clone https://github.com/ButterCMS/rails-starter-buttercms.git
$ cd rails-starter-buttercms
$ bundle install
```

To fetch your ButterCMS content, add your API token as an environment variable.

```bash theme={null}
$ echo 'RAILS_BUTTER_CMS_API_KEY=<Your API Token>' >> .env
```

To view the app in the browser, you'll need to run the local development server:

```bash theme={null}
$ bundle exec rails s
```

**Local Development**: [http://localhost:3000](http://localhost:3000)

**GitHub Repository**: [https://github.com/ButterCMS/rails-starter-buttercms](https://github.com/ButterCMS/rails-starter-buttercms)

## What's included

| Feature | Description |
| - | - |
| **Pages & Page Types** | Pre-built page templates with drag-and-drop schema definition |
| **Components** | Modular content blocks for dynamic landing pages |
| **Collections** | Structured data for navigation, testimonials, FAQs |
| **Blog Engine** | Full blog with posts, categories, tags, and search |
| **Media CDN** | Automatic image optimization via Filestack |

## Deploy options

> [card] [Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/ButterCMS/rails-starter-buttercms)
>
> Deploy to Heroku with environment configuration

## Resources

> [card] [GitHub Repository](https://github.com/ButterCMS/rails-starter-buttercms)
>
> View source code and contribute

> [card] [Rails Guide](https://buttercms.com/docs/frameworks/non-javascript-frameworks/rails.md)
>
> Framework integration guide

## Additional reading

* [Launching Your Own Ruby Gem - Part 1: Build It](https://buttercms.com/blog/launching-your-own-ruby-gem-build-it/)
* [Launching Your Own Ruby Gem (Part 2): Popularizing it Within the Ruby Community](https://buttercms.com/blog/launching-your-own-ruby-gem-part-2-promote-it/)
* [Discover the Best Ruby Frameworks for 2021 (4 Great Options!)](https://buttercms.com/blog/the-best-ruby-frameworks/)

## Next steps

> [card] [Core Concepts](https://buttercms.com/docs/core-concepts/content-types/pages.md)
>
> Learn about Pages, Collections, and Components

> [card] [API Reference](../../api)
>
> Explore the full ButterCMS API


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.