{"id":13879370,"url":"https://github.com/archonic/limestone-accounts","last_synced_at":"2025-09-26T22:31:50.749Z","repository":{"id":54067059,"uuid":"123490444","full_name":"archonic/limestone-accounts","owner":"archonic","description":"Boilerplate Rails 5.2 multitenant SaaS application with webpack and Docker integration. Billing is scoped to accounts.","archived":true,"fork":false,"pushed_at":"2021-03-09T20:58:18.000Z","size":1297,"stargazers_count":99,"open_issues_count":0,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-17T11:36:53.427Z","etag":null,"topics":["boilerplate","devise","docker","flipper","rails","rspec","saas","searchkick","sidekiq","stimulus","stripe","webpack"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"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/archonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["archonic"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-03-01T20:46:14.000Z","updated_at":"2024-12-12T22:30:39.000Z","dependencies_parsed_at":"2022-08-13T06:21:07.912Z","dependency_job_id":null,"html_url":"https://github.com/archonic/limestone-accounts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/archonic/limestone-accounts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archonic%2Flimestone-accounts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archonic%2Flimestone-accounts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archonic%2Flimestone-accounts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archonic%2Flimestone-accounts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archonic","download_url":"https://codeload.github.com/archonic/limestone-accounts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archonic%2Flimestone-accounts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277155542,"owners_count":25770556,"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","status":"online","status_checked_at":"2025-09-26T02:00:09.010Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["boilerplate","devise","docker","flipper","rails","rspec","saas","searchkick","sidekiq","stimulus","stripe","webpack"],"created_at":"2024-08-06T08:02:18.730Z","updated_at":"2025-09-26T22:31:50.248Z","avatar_url":"https://github.com/archonic.png","language":"Ruby","funding_links":["https://github.com/sponsors/archonic"],"categories":["Ruby"],"sub_categories":[],"readme":"# Limestone Accounts\n[ ![Codeship Status for archonic/limestone-accounts](https://app.codeship.com/projects/eb53d150-02ea-0136-1806-3ebecea35641/status?branch=master)](https://app.codeship.com/projects/280180)\n\n*WARNING* Limestone Accounts is no longering being maintained due to it's reliance on the Apartment Gem. If you would like a multitenant solution in Limestone, you can vote for ActsAsTenant here: \nhttps://www.strawpoll.me/42684734/\n\nLimestone Accounts is a boilerplate SaaS app built with Rails 5.2 and has an opinionated integration with NPM using [Webpacker](https://github.com/rails/webpacker) and [Stimulus](https://stimulusjs.org/).\n\nLimestone Accounts is multitenant, meaning each account has one subscription and potentially many users through invitations. If you want each user to have their own subscription, try [Limestone](https://github.com/archonic/limestone).\n\n## The Stack\nThe [gemset](https://github.com/archonic/limestone-accounts/blob/master/Gemfile) has been chosen to be modern, performant, and take care of a number of business concerns common to SaaS.\n\n## Features\n* Free trial begins upon registration without credit card.\n* Per-seat billing.\n* Subscription management. Card update form and cancel account button.\n* Emails for welcome, billing updated, invoice paid, invoice failed and trial expiring. All except welcome are controlled by Stripe webhooks.\n* Invoice PDF attached to invoice paid email.\n* Mail sends through Sidekiq with `deliver_later`. Devise mailing also configured for Sidekiq dispatch.\n* Direct uploading to S3 with ActiveStorage. Lazy transform for resizing. Demonstrated with user avatars.\n* Icon helper for user avatars with fallback to user initials. Icon helper for font awesome icons.\n* Administrate dashboard lets you manage records (ex: accounts, users, invoices). Easy to add more and customize as you like. Visit /admin.\n* Impersonate users through administrate dashboard.\n* Pretty modals using bootstrap integrated into rails_ujs data-confirm. Demonstrated with cancel account button.\n* Persistent banner with link to billing page for accounts that are past due.\n* Opinionated search integration using Elasticsearch via Searchkick. Gem is in place but integration is up to you.\n* Feature control using the flipper gem. Demonstrated with public_registration.\n* Notifications with ActionCable. See console example in app/models/notification.rb.\n* 88% RSpec test coverage.\n\n## Roadmap\n* In-browser image cropping using jcrop or the likes.\n* Custom error pages.\n\n## Notes\n* RSpec controller tests have been omitted in favour of requests tests.\n* You can run tests locally with `docker-compose run web rspec`\n* Because this is a boilerplate, there are no migrations. Rely on schema.rb and use `rails db:setup` to create the db and seed.\n\n## Getting Started\n* Install [Docker](https://docs.docker.com/engine/installation/)\n* Customize .env from .env-example\n* run `docker-compose run webpack yarn install --pure-lockfile` to install all node modules.\n* run `docker-compose up --build` to create and run the various images, volumes, containers and a network\n* run `docker-compose exec web rails db:setup` to create DB, load schema and seed. Seeding will also create your plan(s) in Stripe.\n* Visit lvh.me:3000 and rejoice\n\n### Bonus points\n* Login as the admin user that was created (from .env)\n* Visit /admin/flipper\n* Create the feature `public_registration` and enable it. Now anyone can register :clap:\n* You'll probably want to change the `role` enum on the accounts_user model, and the default role in schema.rb.\n\n### Setting up production\nA wiki will be written about this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchonic%2Flimestone-accounts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchonic%2Flimestone-accounts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchonic%2Flimestone-accounts/lists"}