Production and Dev Environments

Hi

Q1. Could anybody tell me if there are Production and Dev Environments in Adalo and can you test and then promote test to development?
If not how are people handling this

Q2. Is there a way to build multi-tenant app

Appreciate any advice tks Noel

Welcome @ndillane!
At present, there aren’t production and live environments for web apps (the progressive web app / preview show the latest version only), but it is really straightforward to push your app to TestFlight and test away, only releasing your finalised apps to App Store Connect. The Adalo documentation is comprehensive for this: Start your Build in Adalo - Adalo Resources

For multi-tenancy, it depends what you are trying to achieve. It is definitely possible, though you’d need to give a little more information on your use case for anyone to help.

In principle, the two basic ways are using a different app for each tenant, all using the same database, or creating a tenant as a collection item and linking users to it, then managing the behaviour of the app based on the current tenant.

Thank you for this. I will take a look

I m not sure this is clear for me, multi tenant as in you create a saas b2b where each company that signs up, need to have their own data separate and totally secure , how can we do this with Adalo?

Thank you

Hi @Senuoy,

At its most basic, you create a type in your database for a ‘tenant’ (or ‘business’, or ‘company’ - whatever you want to call it), and then you add a ‘tenant’ field to every single other database table.

You then create a field in the user table for ‘tenant’ as well, and you set that field to that user’s company’s tenant id.

You can then filter every view by WHERE ‘tenant’ = Current User’s Tenant ID, so a user can only see their company’s records.

1 Like

Love the answer, thank you @dosandco.

Is there a way also to allow businesses that sign up to get their own subdomain automatically? Without any manual work?

Has anyone succeed in doing so and how?

Thank you