mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
980 stars 252 forks source link

Support application environments #403

Open Janpot opened 2 years ago

Janpot commented 2 years ago

Problem

In pro-code I split my application from its execution environment. For example, my application can be defined as a docker image, and then can be configured in runtime by providing environment variables. Can we create a similar paradigm for Toolpad applications? More specifically:

Solution

We need a way to decouple application definition from runtime environment. Essentially making applications parametrizable. In the context of Toolpad we can distinguish the following types of parameters in an environment:

How it should work

Future work

Benchmark

Screenshot 2022-05-13 at 14 42 59 Screenshot 2022-05-15 at 14 28 58 Screenshot 2022-05-18 at 02 01 35
oliviertassinari commented 2 years ago

I would personally add the waiting for upvotes label to wait. My assumption would be that this feature would target developers that are not yet completely willing to make the speed vs. maintainability tradeoff of low-code. They might be the audience the hardest to convert to Toolpad (the late adopters), so why I doubt we should start there.

Janpot commented 2 years ago

Yes, for multiple environments I agree. I do think there is some value to split application definition from configuration early on. It could be helpful in implementing arbitrary secrets, and also in solving some of the issues we talked about around having secrets readable in the editor or not