Community maintained Directus instance templates to help you jump start your next project. Apply and extract templates with directus-template-cli.
Introduction · 🚧 Using Templates · ❤️ Contributing
A Directus template is a starter kit or boilerplate for a Directus project. But it could be a full blown application – like AgencyOS.
Templates are extracted and applied using the directus-template-cli
command line utility.
- They're examples of what you can build with Directus
- They're starting points for your next client project
- They're going to save you a boatload of time
Schema / Data Model
- Schema Snapshot
- Collections
- Fields
- Relations
Users and Authentication
- Users
- Roles
- Permissions
- Presets
Flows
- Flows
- Operations
Dashboards
- Dashboards
- Panels
Assets
- Folders
- Files
- Actual Files for Assets
Sample Content / Data
- Translations
- Content
To load or use templates you need a Directus instance. Here's a few ways to go about that.
https://directus.cloud/register
This is the easy button. You don’t have to mess with Docker or working out how to deploy a Directus instance at AWS, Digital Ocean, or similar hosts. A couple of clicks and in less than 2 minutes you’ll have a ready to go Directus project.
OR
If you're prefer to self-host Directus, we highly recommend you do so with Docker. We have several guides on the Directus docs.
Important Note: We (the Directus team) cannot provide support for self-hosted instances WITHOUT an Enterprise Self-Hosted license or formal support agreement. Learn more and contact our team for details on Enterprise Self-Hosted.
PostgreSQL is the tested and preferred database vendor for templates.
You need the static token to seed the project.
- Go to the User Directory
- Choose the Administrative User
- Scroll down to the Token field
- Generate token and copy it
- Save the user (do NOT forget to save because you’ll get an error that shows Invalid token!)
Open your terminal, run the following command, and simply follow the prompts.
npx directus-template-cli@latest apply
You can load apply templates from three sources.
- Official Templates (maintained in this repo)
- Local directory (files on your local computer)
- GitHub repository (public only)
You can learn more about the Directus Template CLI tool here.
Note: It can take a few minutes for the template script to run if you’re using a remotely hosted Directus instance.
This is community driven project so we'd love to have your contributions.
You can extract your own templates using:
npx directus-template-cli@latest extract
Here's how you can contribute:
- Make a pull request to add your own template.
Big shout out to Alex van der Valk (AVDV) for his contributions to this project.