Ruby on Rails 6: SaaS multitenancy boilerplate


This is a Ruby on Rails Multitenancy Software as a Service boilerplate app.

Imagine having different secure organisations in Slack, or different team projects in Trello.

Users can create organisations, invite members, and manage access rights to different data

Ruby 2.7+, Rails 6.1+
Sign in with Sign in with Sign in with Sign in with

Buy a Licence + Video course:
Ruby on Rails 6: Learn to Build a Multitenancy Subscriptions SaaS app

Features

The core functionality works well.
We are always working on adding more features.
You can see the existing features, as well as the roadmap here:

Authentication

  • Log in with email
    Available
  • Log in with google
    Available
  • Log in with github
    Available
  • Connect multiple social accounts to one user
    Available
  • Team Multitenancy

  • Complete row-based multitenancy
    Available
  • User can create multiple tenants (same as [:organisations, :teams, :accounts])
    Available
  • User can switch between tenants
    Available
  • User can invite others to become members of the tenant
    Available
  • Flexible ways to set current_tenant only where you need it
    Available
  • Data is scoped based on current_tenant
    Available
  • Authorization

  • When a user creates a tenant, he gets tenant "admin" role
    Available
  • 3 default roles: [:admin, :editor, :viewer]. You can change them.
    Available
  • Admin can manage roles and delete users
    Available
  • Admin can manage general tenant settings
    Available
  • Editor can create, read, update, delete tenant-specific data
    Available
  • Viewer can only see the tenant-specific data
    Available

  • Plan-based restrictions

  • Create custom pricing Plans
    Available
  • For example - restrictions based on max. members
    Available
  • You can change the plan for a tenant
    Available
  • Billing and Subscriptions

  • Custom subscriptions engine (no gems!)
    Available!
  • NO tenant access without an active subscription
    Available!
  • Subscriptions
    Available!
  • One-time Payments
    Available!
  • Stripe integration
    Available!
  • Superadmin access

  • Custom SIMPLE superadmin panel (no gems!)
    Available
  • Manage users, tenants, plans, subscriptions, charges
    Available

  • Bootstrap 4.5 native UI

  • Full mobile responsiveness
    Available
  • Nice styling with minimal css
    Available
  • Fontawesome icons
    Available
  • Internationalization (i18n)

  • Users can select language
    Available
  • Views with i18n included
    Available
  • Production & SEO ready

  • ActiveStorage & AWS S3 readiness
    Available
  • reCaptcha without google
    Available
  • Dark Mode
    Available
  • Progressive Web App
    Available

  • Super scaffolding

  • New scaffolds are automatically styled
    Available
  • New scaffolds have i18n by default
    Available
  • Search functionality integrated into new scaffolds.
    Coming soon!
  • Sorting functionality integrated into new scaffolds.
    Coming soon!
  • Docs

  • 100% video coverage (code-along tutorial format) of how this app was created
    Available
  • User documentation
    Coming soon!
  • Developer documentation
    Coming soon!
  • Test coverage

  • Coming soon!

  • Inspiration

    Apps that you can create using multitenancy

    Salesforce

    Subscription-based access to organisational data.
    Bill organisations, not individuals.

    Slack

    Users can create multiple independent environments for different teams.

    Trello

    Invite different collaborators for different projects.
    Role-based access.