Hi ๐
We just open-sourced the Rails 8.1 API backend that powers our native iOS + Android template (NativeAppTemplate). It's extracted from MyTurnTag Creator โ a real app shipping to real users on the App Store and Google Play.
Repo:
Stack highlights:
-
Rails 8.1 with Solid Queue / Cache / Cable
-
PostgreSQL
-
Path-based multitenancy (
/:account_id/) via -
Token authentication via
-
Authorization via
-
205 Minitest tests across models, policies, serializers, controllers
-
render.yaml committed โ one-click deploy
-
Madmin admin panel
-
jsonapi-serializer for response shape
Why this might be interesting to you:
-
A working reference for path-based multitenancy in Rails (it's harder than it looks once you mix Pundit + acts_as_tenant + token auth)
-
An example of a Rails API serving multi-platform clients (real native iOS/Android, not WebViews)
-
Solid Queue / Cache / Cable wired up in a real app โ not just hello-world
Honest tradeoffs / things you might not love:
-
Opinionated structure โ won't suit every team
-
Multitenancy is account-scoped, not row-scoped (different needs require different patterns)
-
We use devise_token_auth, which is fine but not everyone's preferred auth approach
I'd love feedback on the multitenancy approach, the test structure, or anything else you spot. Happy to answer architecture questions.