Directus Instance Dev

🚀 Automating Directus Setup for Development with Bash

Hey Devs! đź‘‹

I created to automate the setup of a Directus instance for development. If you’re working with Directus and want to streamline your development workflow, this script might ju…


This content originally appeared on DEV Community and was authored by ansango

🚀 Automating Directus Setup for Development with Bash

Hey Devs! đź‘‹

I created to automate the setup of a Directus instance for development. If you're working with Directus and want to streamline your development workflow, this script might just save you some time!

🎯 Key Features:

  • Automatic installation of the latest Directus version.
  • Node.js 18.x compatibility check to avoid version mismatch issues.
  • SQLite database setup by default, perfect for quick dev environments.
  • Admin user creation and environment variable configuration.
  • Installs useful dev tools like nodemon and concurrently.
  • Offers extension management for Directus, allowing you to easily create and run extensions during development.

đź›  How It Works:

  1. Download the script to your local machine.
  2. Make it executable:
   chmod +x directus-instance-dev.sh
  1. Run the script:
   ./directus-instance-dev.sh
  1. Follow the prompts to configure your instance (admin user, project name, port, etc.), and you're all set!

🎉 Why Use It?

This script handles all the repetitive setup tasks so you can focus on building instead of configuring. Whether you're just starting out with Directus or building a more complex project with extensions, it provides a clean, automated solution.

🧩 Customization

You can easily modify the script to:

  • Change the database setup.
  • Adjust environment variables.
  • Pre-install specific Directus extensions.
  • Fine-tune the dev scripts.

đź—Ł Feedback Welcome!

Feel free to check it out, give it a spin, and share your feedback. I’m looking forward to hearing how it works for you and what can be improved!

👉 Get the script here!

Happy coding! 💻✨


This content originally appeared on DEV Community and was authored by ansango


Print Share Comment Cite Upload Translate Updates
APA

ansango | Sciencx (2024-09-18T19:49:01+00:00) Directus Instance Dev. Retrieved from https://www.scien.cx/2024/09/18/directus-instance-dev/

MLA
" » Directus Instance Dev." ansango | Sciencx - Wednesday September 18, 2024, https://www.scien.cx/2024/09/18/directus-instance-dev/
HARVARD
ansango | Sciencx Wednesday September 18, 2024 » Directus Instance Dev., viewed ,<https://www.scien.cx/2024/09/18/directus-instance-dev/>
VANCOUVER
ansango | Sciencx - » Directus Instance Dev. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/18/directus-instance-dev/
CHICAGO
" » Directus Instance Dev." ansango | Sciencx - Accessed . https://www.scien.cx/2024/09/18/directus-instance-dev/
IEEE
" » Directus Instance Dev." ansango | Sciencx [Online]. Available: https://www.scien.cx/2024/09/18/directus-instance-dev/. [Accessed: ]
rf:citation
» Directus Instance Dev | ansango | Sciencx | https://www.scien.cx/2024/09/18/directus-instance-dev/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.