api icon indicating copy to clipboard operation
api copied to clipboard

Auto-create client credentials on environment variable or config?

Open danwdart opened this issue 6 years ago • 1 comments

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.

danwdart avatar Sep 25 '18 14:09 danwdart

This also might raise the question of whether there should be a "migration" system for default data?

danwdart avatar Sep 25 '18 14:09 danwdart