api
api copied to clipboard
Auto-create client credentials on environment variable or config?
When installing an app that's been created using DADI API, currently it needs to be "restored" from a DB backup or JSON file to make it accessible.
I think it would be good if we could have the "create a new client" procedure automatically happen based on an environment variable / config option when the app is started for the first time. This would allow distributions of new app stacks to be easier and faster.
Use case: If I make a new app based on DADI API intended for distribution, the admin user will have to enter the "create client" steps every time instead of just defining it in the configs / envs every time they install.
This also might raise the question of whether there should be a "migration" system for default data?