Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Allow more entrypoints to manipulate directus #1623

Open
jooola opened this issue Jan 8, 2020 · 2 comments
Open

Allow more entrypoints to manipulate directus #1623

jooola opened this issue Jan 8, 2020 · 2 comments
Labels

Comments

@jooola
Copy link

jooola commented Jan 8, 2020

I had an idea while thinking how to enhance my development / shipping workflow with directus.

The idea is simply to allow other ways to manipulate the Directus database. Currently the only way to build collections and fields is through the API so mainly through the Vue App.

Some other ways could be using CLI commands (development, maintenance), or using some structured yaml file to describe the collections and fields (deployment, development, backups).

For example a CLI command could load or export a structure definitions in YAML.

Since the project is moving to Laravel, I hoped this could be taken into count, and build some kind of service layer before plugin the whole thing into HTTP handlers (see the note here https://laravel.com/docs/6.x/artisan#command-structure).

I know Laravel has some really nice features like Thinker, or a really powerful CLI commands library. So this seem doable, and wanted to know whether people @directus/api already thought about this.

@next-direction
Copy link

This could be related to #31

@WoLfulus
Copy link
Contributor

WoLfulus commented Jan 8, 2020

yeah, I've been thinking about this for more than a year now. at least for my workflows it would make it a lot easier for example to spawn new directus instances using a "template" project for new clients that needs something I already have done, or to make a "cloud" hosting of some kind of service.

I already played with this for some time too (external cli for directus), I might have it here rotting somewhere.

Anyways, I'd love to talk about those if you're interested. I also like all of your suggestions for the codebase and I'm moving all of them to the laravel branch, if you're interested I'd love to get your feedback over slack, and we can keep talking. I'm there most of the time!

Just let me know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants