{"id":15151207,"url":"https://github.com/couchbase-starter-kit/couchbase-rails-starter","last_synced_at":"2026-02-27T13:36:00.330Z","repository":{"id":254413031,"uuid":"823005363","full_name":"couchbase-starter-kit/couchbase-rails-starter","owner":"couchbase-starter-kit","description":"A starter kit for building Rails applications with Couchbase integration. Includes sample configurations, environment setup, and a test suite using RSpec.","archived":false,"fork":false,"pushed_at":"2024-09-09T10:54:35.000Z","size":15771,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:17:11.019Z","etag":null,"topics":["codespaces","conduit","couchbase","devcontainer","gitpod","rails","starter","starter-kit","workshop"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/couchbase-starter-kit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-02T08:47:15.000Z","updated_at":"2024-10-03T10:09:26.000Z","dependencies_parsed_at":"2024-09-09T12:09:45.350Z","dependency_job_id":null,"html_url":"https://github.com/couchbase-starter-kit/couchbase-rails-starter","commit_stats":null,"previous_names":["couchbase-starter-kit/rails-starter-kit","couchbase-starter-kit/couchbase-rails-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-starter-kit%2Fcouchbase-rails-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-starter-kit%2Fcouchbase-rails-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-starter-kit%2Fcouchbase-rails-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-starter-kit%2Fcouchbase-rails-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase-starter-kit","download_url":"https://codeload.github.com/couchbase-starter-kit/couchbase-rails-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237932070,"owners_count":19389560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codespaces","conduit","couchbase","devcontainer","gitpod","rails","starter","starter-kit","workshop"],"created_at":"2024-09-26T15:00:58.514Z","updated_at":"2025-10-24T07:31:08.518Z","avatar_url":"https://github.com/couchbase-starter-kit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Couchbase Rails Starter Kit\n\n![Test Suite](https://github.com/couchbase-starter-kit/couchbase-rails-starter/actions/workflows/run-tests.yml/badge.svg)\n![Couchbase Capella](https://img.shields.io/badge/Couchbase_Capella-Enabled-red)\n[![License: MIT](https://cdn.prod.website-files.com/5e0f1144930a8bc8aace526c/65dd9eb5aaca434fac4f1c34_License-MIT-blue.svg)](/LICENSE)\n![Static Badge](https://img.shields.io/badge/Code_of_Conduct-Contributor_Covenant-violet.svg)\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/couchbase-starter-kit/couchbase-rails-starter)\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/couchbase-starter-kit/couchbase-rails-starter)\n\n## Configuration\n\n| Variable Name                      | Description                                                 |      Default value       |\n|:-----------------------------------|:------------------------------------------------------------|:------------------------:|\n| RAILS_COUCHBASE_CONNECTION_STRING  | A couchbase connection string                               |            -             |\n| RAILS_COUCHBASE_USERNAME           | Username for authentication with Couchbase                  |            -             |\n| RAILS_COUCHBASE_PASSWORD           | Password for authentication with Couchbase                  |            -             |\n| COUCHBASE_USE_CAPELLA              | Use to change the connection profile                        |          false           |\n| COUCHBASE_DEFAULT_BUCKET           | The name of the Couchbase Bucket, parent of the scope       |         default          |\n| COUCHBASE_DEFAULT_SCOPE            | The name of the Couchbase scope, parent of the collection   |         _default         |\n| COUCHBASE_DEFAULT_COLLECTION       | The name of the Couchbase collection to store the Documents |         _default         |\n\n\n### Getting started\n\nFollow these steps to get the starter kit up and running on your local machine.\n\n**Prerequisites**\n\nMake sure you have the following installed:\n\n* Ruby 3.3.x\n* Bundler\n* Rails 7.0.x\n* Git\n\nYou will also need an account on Couchbase Capella to create a cluster and obtain the connection details.\n\n**Clone the repository**\n\n```bash\ngit clone https://github.com/couchbase-conduit-workshop/couchbase-rails-starter.git\ncd couchbase-rails-starter\n```\n\n**Install dependencies**\n\n```bash\nbundle install\n```\n\n**Configure Couchbase Credentials**\n\nCopy the `.env.sample` file in the root directory of the project and rename it to `.env`. Update the `.env` file with your Couchbase credentials as follows:\n\n```bash\nRAILS_COUCHBASE_USERNAME=your_RAILS_COUCHBASE_USERNAME\nRAILS_COUCHBASE_PASSWORD=your_RAILS_COUCHBASE_PASSWORD\nRAILS_COUCHBASE_CONNECTION_STRING=your_RAILS_COUCHBASE_CONNECTION_STRING_url\nCOUCHBASE_DEFAULT_BUCKET=your_COUCHBASE_DEFAULT_BUCKET\n```\n\nYou can obtain those credentials by first creating an account on Couchbase Capella at [https://cloud.couchbase.com/](https://cloud.couchbase.com/) and then creating a database called `rails_starter_app`. Inside the database, create a bucket. The name of the bucket is what you should use for the `COUCHBASE_DEFAULT_BUCKET` environment variable.\n\nOnce you have done so, you can navigate to the `Connect` tab in the database and copy the connection string URL. This is what you should use for the `RAILS_COUCHBASE_CONNECTION_STRING` environment variable. You will also need to create a user with the appropriate permissions and use the username and password for the `RAILS_COUCHBASE_USERNAME` and `RAILS_COUCHBASE_PASSWORD` environment variables.\n\n**Running the Test Suite**\n\nThis application includes the beginnings of a test suite using RSpec. To run the test suite, use the following command:\n\n```bash\nbundle exec rspec\n```\n\nThis will run all the tests and output the results in the terminal. You can run any specific test file by passing the file path as an argument to the `rspec` command, as follows:\n\n```bash\nbundle exec rspec spec/config/couchbase_spec.rb\n```\n\n**Starting the Application**\n\nTo start the application, run the following command:\n\n```bash\nbundle exec rails server\n```\n\nThis will start the Rails server, and you can access the application at [http://localhost:3000](http://localhost:3000).\n\n### Contributing\n\nContributions are more than welcome! If you encounter any bugs or issues with the application, please open an issue on the GitHub repository. If you would like to contribute code, feel free to open a pull request with your changes. All contributors are expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase-starter-kit%2Fcouchbase-rails-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase-starter-kit%2Fcouchbase-rails-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase-starter-kit%2Fcouchbase-rails-starter/lists"}