š Automating Directus Setup for Development with Bash
Hey Devs! š
I created a script 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:
- Download the script to your local machine.
- Make it executable:
chmod +x directus-instance-dev.sh
- Run the script:
./directus-instance-dev.sh
- 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! š»āØ
Top comments (0)