dadi / api

A high-performance RESTful API layer designed in support of API-first development and COPE. Connects your content to the world
https://dadi.cloud/en/api/
Other
180 stars 29 forks source link

Auto-create client credentials on environment variable or config? #493

Open danwdart opened 6 years ago

danwdart commented 6 years ago

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 commented 6 years ago

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